Sources of the main TRR379 website
  • HTML 98.2%
  • Makefile 1.8%
Find a file
2025-05-02 13:13:10 +00:00
.datalad [DATALAD] new dataset 2024-06-19 09:56:23 +02:00
.forgejo/workflows Add workflow to auto-build and deploy 2025-03-18 09:13:38 +01: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 Initial Commit 2025-04-04 15:59:08 +02:00
content added Isabel's profile 2025-05-02 15:10:51 +02:00
layouts Resolve alignment glitch after congo update 2025-01-20 10:52:33 +01:00
static News zu einem Video über A02, welches lokal unter static gehostet wird. Ich habe es auch mit A02 verknüpft und es erscheint unter den Personen in dem TP. Ausserdem ein Typo korrigiert 2025-03-07 11:40:02 +01:00
themes Update congo theme to 2.10 2025-01-08 15:21:15 +01:00
.gitattributes Move items from top-level menu to footer 2024-06-21 09:38:12 +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 Put deployment command into Makefile 2025-02-03 07:32:43 +01:00
README.md modify markdownfile for non breaking space note 2025-04-11 17:11:43 +02: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 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.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.

Note - Hugo renders the portrait section only when there is some content after the frontmatter in the markdown file. Adding &nbsp;, a non-breaking space HTML entity adds the minimal content needed to render the 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.