No description
Find a file
Jan Kjetil Myklebust b8e6e394d4 Adds i18n config files for nb and nn.
Translates badges into Nynorsk.
2025-04-08 16:18:44 +02:00
.devcontainer Use maintained Hugo image for CI + add devcontainer config 2024-10-20 17:06:02 +02:00
content Add link to the sign-up form 2025-03-29 11:24:39 +01:00
data/badges Adds i18n config files for nb and nn. 2025-04-08 16:18:44 +02:00
i18n Adds i18n config files for nb and nn. 2025-04-08 16:18:44 +02:00
static Add devops blog post about Nextcloud incident 2025-02-22 11:57:44 +01:00
themes/datacoop2020 Add "written by" to blog posts 2025-02-24 14:06:08 +01:00
.drone.yml Use maintained Hugo image for CI + add devcontainer config 2024-10-20 17:06:02 +02:00
.gitignore Update for Hugo 0.111.1 2023-03-04 23:43:37 +01:00
config.yaml Move files and add taxonomies for blog posts 2025-02-22 14:25:35 +01:00
docker-compose.yml Update so it works 2025-01-10 12:46:23 +01:00
Dockerfile Restore Dockerfile 2020-05-29 23:08:04 +02:00
README.md Update so it works 2025-01-10 12:46:23 +01: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 run --rm -u `id -u` --service-ports 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.