This project is the source code of the rero21.ch website.
To run rero21.ch :
- Install Hugo
- Fork and/or clone the repo :
git clone https://github.com/rero/rero21.ch.git
- Initialize the theme submodule
with
git submodule update --init
- Run the site locally with
hugo server -D
In order to diffentiate lastmod
from date
and publishDate
the following
configuration in the config.toml
is mandatory:
[frontmatter]
date = ["date", "publishDate"]
lastmod = ["lastmod"]
publishDate = ["publishDate", "date"]
You can add to the front matter the lastmod
parameter, with a date
(YYYY-MM-DD). This will add on top of the post (and on the preview list on the
home page) a blue bold text with this date.
lastmod: 2026-01-01
In order to add acronyms in small caps, you can use the following shortcode:
{{< smallcaps "rero" >}}
In order to add Bootstrap styling to a markdown table, wrap your markdown table inside the shortcode like so:
{{< bootstrap-table "table table-striped table-bordered" >}}
| Résultat de l'alignement | Fréquence | % des monographies RERO |
|:-----------------------------|----------:|------------------------:|
| Aucune équivalence | 2'954'451 | 65.2% |
{{< /bootstrap-table >}}
Use bootstrap-table
classes inside the ""
to customize your table.
{{< abbr title="Réseau romand" text="RERO" >}}
The title
is the definition and text
is the in-line text.
Put the image in the static/img/
folder and use the hugo built-in
figure shortcode
To add video, put your video in webm
and mp4
, with the exact same file name
in the static/vid/
folder and use the following shortcode:
{{< video src="<filename>" legend="<the legend below the video>" >}}