Skip to content

Latest commit

 

History

History
80 lines (55 loc) · 4.29 KB

File metadata and controls

80 lines (55 loc) · 4.29 KB

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.

Setup

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:

  1. The multiple languages plugin is configured so that each language has its own subfolder (/de/, /en/).
  2. The bug makes it impossible to have the default language content both in the root and in the subfolder.
  3. Therefore, the root index.html must forward to the default language subfolder.
  4. In order to achieve this, a forwarding index.html in the root folder is written during the GitHub Action.
  5. The site is then deployed to (and served from) github-pages.

Contributions

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.

Contributing content in Markdown

This site uses the kramdown dialect of Markdown.

For help on syntax have a look at:

Create a new page

  1. Create template in _pages
  2. Create content file in `_i18n///.md
  3. in the template Markdown file in _pages, add {% tf <sectionname>/<pagename>.md %}, which will embed the translated file contents.

Create a new post

  1. Create a new post in the _posts directory
  2. Provide the key language in the YAML metadata (e.g., language: en)
  3. Only English (en) and German (de) posts are possible at the moment
  4. Posts will be displayed on language-specific blog pages, sorted by publication date

Creating a splash page

Splash pages with feature rows can be used, and content at different places be translated.

  • Excerpt translations (which replace values for the excerpt keys) with a length of > 1 line are translated via a translated file in the _i18n/<language>/ directory, and a value for the YAML key excerpt-translation in the feature row or front matter YAML.
  • Short translations (1 line, replacing title or btn_label keys with title-translation, btn_label-translation) are translated via translation keys in _i18n/<language>.yml.

Example excerpt

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-button

Map

The 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