Sources of the main TRR379 website https://www.trr379.de
  • HTML 47.9%
  • CSS 27.8%
  • JavaScript 24.2%
  • Makefile 0.1%
Find a file
Michael Hanke cc405f60b9
All checks were successful
Deploy on webserver / Build site and deploy on success (push) Successful in 4m48s
Merge branch 'main' into published
2026-05-05 14:05:04 +02:00
.datalad [DATALAD] new dataset 2024-06-19 09:56:23 +02:00
.forgejo use apt to install jq 2026-04-24 15:45:07 +02:00
archetypes Add archetype for contributors 2024-07-08 07:56:26 +02:00
assets Give each project a thumbnail for some color in the listings 2024-07-04 15:46:24 +02:00
config/_default point to correct base URL for main site 2026-04-27 09:49:51 +02:00
content Auto-update publications 2026-05-05 05:16:15 +00:00
i18n Split contributors into current and former 2026-05-04 13:56:49 +00:00
layouts Split contributors into current and former 2026-05-04 13:56:49 +00:00
static chore: sanitize video filename 2026-04-24 15:48:58 +02:00
themes Update theme for compatibility with hugo v152 2025-12-10 09:02:15 +01:00
.gitattributes Prevent even more addition of images to Git 2025-09-04 11:44:20 +02:00
.gitignore Ignore .DS_Store from now on 2024-08-20 13:01:05 +02:00
.gitmodules Track stable branch of the congo theme 2024-06-19 10:12:49 +02:00
Makefile Adjust deployment target for live site 2025-02-03 07:34:35 +01:00
README.md Display portrait also in absence of text content 2026-02-25 11:50:01 +00:00

Website of TRR379

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, meaning the main website itself is also integrated with the TRR379 data management, and is version-controlled with auditable changes.

Edit and test the website locally

In order to work on the website locally and independently clone this dataset and run hugo (v0.152!) to serve a website draft on your own computer (using uv, this hugo version can be installed via uv tool install hugo==0.152). The following command achieve that.

With DataLad installed, do the following:

datalad clone ssh://git@hub.trr379.de/q04/www.trr379.de.git

# and enter the directory for any of the following commands to work
cd www.trr379.de

This created a clone of the dataset in the directory www.trr379.de. 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 the TRR379 webserver. Contact m.hanke@fz-juelich.de 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.

Image properties

Each page can have images. Images should be placed into the directory that contains the _index.md file with the content of that page.

Images should be scaled to a meaningful size to avoid bloat.

  • Contributor portraits should be no wider than 400 pixels.
  • Page thumbnails should be a minimum of 320x240 pixels. Importantly, they should have an aspect ratio of 4:3.

Contributor pages can declare a particular image to be used as a portrait with the portrait page parameter in the front matter.

It is also possible to use one and the same image as portrait and thumbnail (see page of Michael Hanke). For that to work, the face needs to be centered in the thumbnail image.

Function as a taxonomy for TRR379

This website is not just a public-facing view on the consortium. It also serves as a collection of canonical definitions of entities essential for the function of TRR379. Such entities include

  • projects of the TRR
  • contributors to the TRR
  • publication from the TRR membership
  • site of the consortium
  • ...

Any such entity has a dedicated page on the website, with a stable URL that serve as a IRI for that entity. As such, these URLs can be used in any TRR379-related metadata to declare relationships to TRR379 entities, for example, the authorship of a publication, the origin project of a data release, etc.