www.de-rse.org hosting repository
This repository contains the source files for the de-RSE website. Its official hosting URL is https://www.de-rse.org.
The site is made to be built with Jekyll.
To build, run bundle install once (or skip that if you have dependencies already installed and bundler does not work for you) and then bundle exec jekyll build.
To preview locally, run bundle exec jekyll serve --incremental and browse to http://localhost:4000.
The --incremental flag helps speeding up the previews.
To include drafts in the preview add the --drafts flag.
To see where exactly something breaks or takes long, add the --verbose flag.
For all flags use the --help flag.
This site uses the Minimal Mistakes Jekyll template together with the Multiple Languages Plugin. Due to a bug in the latter, and due to how the template works, auto-deploying via the GitHub Pages functionality doesn't work.
Instead, GitHub Actions are used to make it work:
- The multiple languages plugin is configured so that each language has its own subfolder (
/de/,/en/). - The bug makes it impossible to have the default language content both in the root and in the subfolder.
- Therefore, the root index.html must forward to the default language subfolder.
- In order to achieve this, a forwarding index.html in the root folder is written during the GitHub Action.
- The site is then deployed to (and served from)
github-pages.
To contribute, please fork, change, test locally (see above) and create a pull request against master.
If you want to contribute bigger changes, please open an issue first to discuss your proposed changes.
This site uses the kramdown dialect of Markdown.
For help on syntax have a look at:
- Create template in
_pages - Create content file in `_i18n///.md
- in the template Markdown file in
_pages, add{% tf <sectionname>/<pagename>.md %}, which will embed the translated file contents.
- Create a new post in the
_postsdirectory - Provide the key
languagein the YAML metadata (e.g.,language: en) - Only English (
en) and German (de) posts are possible at the moment - Posts will be displayed on language-specific blog pages, sorted by publication date
Splash pages with feature rows can be used, and content at different places be translated.
- Excerpt translations (which replace values for the
excerptkeys) with a length of > 1 line are translated via a translated file in the_i18n/<language>/directory, and a value for the YAML keyexcerpt-translationin the feature row or front matter YAML. - Short translations (1 line, replacing
titleorbtn_labelkeys withtitle-translation,btn_label-translation) are translated via translation keys in_i18n/<language>.yml.
intro:
- excerpt-translation: home/intro-excerpt.md # Long excerpt translations have their own files
feature_row:
- image_path: /assets/images/image.png
alt: "Positions"
title-translation: home.positions-title # Translation key for the positions title
excerpt-translation: home/positions-excerpt.md
url: "/home/positions/"
btn_class: "btn--primary"
btn_label-translation: home.learn-more-buttonThe map is fed by mapdata.js. Adding someone to the map is as simple as adding a new section in this geoJSON file. Coordinates are available from http://geojson.io/ . Right now pictures should be 75px high. Inspiration for a nice testimonial can be found at Stephan Druskat's entry.
The map appeared on Dec 6th 2017 on the website. It's based on leaflet v1.2 and Leaflet.markercluster