Website for data.coop
Go to file
2023-08-24 13:44:19 +00:00
content Merge pull request 'Draft around the prospects of members that are not near Copenhagen' (#99) from benjaoming/website:english-precision into main 2023-08-24 13:44:19 +00:00
data/badges Updates and typo fixes 2023-07-24 01:43:35 +02:00
i18n Adding badges with status colors to service definitions 2023-03-06 19:37:48 +01:00
static Gitea -> Forgejo 2023-07-29 15:54:36 +02:00
themes/datacoop2020 Merge pull request 'Make links language-aware' (#101) from fix-redirects into main 2023-07-29 16:24:10 +00:00
.drone.yml Use klakegg/hugo for building site 2023-07-30 00:26:25 +02:00
.gitignore Update for Hugo 0.111.1 2023-03-04 23:43:37 +01:00
config.yaml Fix baseURL 2023-07-26 17:12:29 +02:00
docker-compose.yml Use klakegg/hugo for building site 2023-07-30 00:26:25 +02:00
Dockerfile Restore Dockerfile 2020-05-29 23:08:04 +02:00
README.md master -> main in README.md [ci skip] 2023-07-30 00:01:09 +02:00

data.coop-website

Build Status

This is a Hugo project.

Running with Docker

In docker-compose.yml, we have specified a serve target which you can run locally like this:

docker-compose up serve

Running without Docker

Go to Hugo Github release and fetch the latest package for hugo_extended for your system.

We want to align with the latest version always. If it doesn't work, file an issue!

Example recipe

# Fetch .deb from Github
wget https://github.com/gohugoio/hugo/releases/download/v0.80.0/hugo_extended_X.Y.Z_Linux-64bit.deb -O hugo_extended.deb

# Install package
sudo dpkg -i hugo_extended.deb

# Clone repo
git clone https://git.data.coop/data.coop/website.git data.coop-website

# Go to website
cd data.coop-website

# Run development server
hugo server

Deploying the site

Simply pushing to main in our main repo at https://git.data.coop/data.coop/website/ will trigger a build-and-deploy of the website.

Multilingual notes

Our website is made multi-lingual using the following 3 structures:

  1. The folder i18n/ contains translations of strings used in the theme.
  2. Each content article and news text has a language version such content/<slug>.en.md
  3. The config.yaml contains settings specific to each language, such as navigation.