Sources for www.distribits.live
  • HTML 71.6%
  • CSS 26.9%
  • Makefile 1.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-08-21 10:00:24 +02:00
.datalad
.forgejo/workflows ci: update deployment workflow 2026-08-20 11:18:56 +02:00
archetypes
artwork Push towards a first full draft 2025-01-10 10:07:37 +01:00
assets Styling for a topic chooser 2025-02-20 14:50:51 +01:00
config/_default update copyright date 2026-08-21 10:00:24 +02:00
content add distribits 2027 thumbnail to events page 2026-08-21 09:58:43 +02:00
layouts Markdownify the abstracts 2025-06-10 19:08:03 +02:00
themes Update Congo theme to 2.12.2 2025-11-12 17:43:22 +01:00
.gitattributes
.gitignore
.gitmodules
Makefile Use a makefile for the deployment 2025-02-21 19:28:23 +01:00
README.md

Sources for www.distribits.live

This is a hugo project, meaning that the online website is built from the content of this repository using a static website generator.

This repository is also a DataLad dataset and git-annex repository.

Edit and test the website locally

In order to work on the website locally and independently clone this dataset and run hugo to serve a website draft on your own computer. The following command achieve that.

With DataLad installed, do the following:

datalad clone ssh://git@hub.datalad.org/distribits/www.git www.distribits.live
# and enter the directory for any of the following commands to work
cd www.distribits.live

This created a clone of the dataset in the directory www.distribits.live. Now obtain the website theme. It provides the website "looks" and is only needed for actually rendering the site, but not for making edits. The next command downloads the theme and all media files. This requires an SSH account on hub.datalad.org. Contact mih@ngln.eu to obtain one.

datalad get -r .

Now you are ready to run hugo. It will build the site and output a URL to open in a browser to test it.

hugo server

Make any edits, test them out locally, then save and push them with datalad push

Adding media files

Media files (images, videos, etc) should not be added directly to the Git repository to avoid bloat and the resulting technical difficulties of maintaining the website.

Instead, media files are added to the repository's annex with DataLad or git-annex. A datalad save -m "<message>" to save an update will do the right thing automatically. If you are using Git directly, instead of using git add <file> use git annex add <file> and afterwards commit normally.

Repository organization

There are two primary branches

  • main
  • published

The first is the development branch. Deployments target a draft site. The published branch reflect the latest deployment of the official website.

Changes are merged from main to published, never the other way round.

Deploy

A website update can be deployed by running the deploy.sh script in the root of the repository. Depending on the branch that is deployed, it will either update https://www-draft.distribits.live or the official website at https://www.distribits.live.

SSH-access permissions are required for deploying an update.

hugo vs git-annex

Hugo cannot deal with symlinks, seemingly not at all. Hence, this repository is set up with

git annex config --set annex.addunlocked true

to avoid any issues with annexed files.