The community website is an entry point for the community of people that are interested in learning more about the CoronaMelder app and that may be willing to help out.
These goals are maintained by the community manager of the Ministry of Health. Suggestions are welcome, as ever.
(Potential) community members. Specifically:
GitHub Pages are public webpages hosted directly through the GitHub repository.
GitHub Pages support the static site generator Jekyll. Jekyll supports Markdown, Liquid, HTML and CSS to create a complete static website. By using the Liquid templating language, content can be stored in Markdown.
Content can be edited via pull requests via the blocks folder in this repository.
To add a block, create a Markdown file in _blocks
with the following template:
---
lang: nl
index: 7
title: The title
subtitle: Subtitle
list:
- title: Example
href: https://example.com
text: Some example website listing
- title: Another example
href: https://www.example.com
text: Another example
image:
href: <link to image>
alt: <description of the image>
button:
text: Goto GitHub
icon: github
href: https://github.com/
---
The Markdown content goes here, this can contain <code>HTML</code>.
Please give your file a short English name without spaces (you can use dash -
instead).
You should at least provide the base file with lang: nl
.
The translations should have the same name with a -lang
suffix, where lang
is the language keyword e.g. en
.
To build Jekyll, you could install Jekyll locally or probably the easier route: use a Docker image. To use a Docker image you should have Docker engine installed, see how to install Docker enginge.
starefossen/github-pages
is a small Alpine Docker image for running GitHub Pages / Jekyll projects locally.
You only need to mount the pages in a volume under /usr/src/app
like this:
docker run -it --rm -v "$PWD":/usr/src/app -p "4000:4000" starefossen/github-pages
Note: for Windows users we advise Powershell or another shell that supports $PWD
, for cmd
you can replace $PWD
with %cd%
.
The Jekyll page will be available on http://localhost:4000
.