This website uses Jekyll with a single-source multi-language approach to be served using GitHub Pages.
-
_includes/index-content.html- Single source of truth for all page content- Contains all language versions using
{% if page.lang == 'en' %}...{% endif %}conditionals - Edit this file to update content for all languages
- Contains all language versions using
-
_layouts/default.html- Shared layout for all pages- Dynamic metadata based on
page.lang - Navigation with language flags
- Dynamic metadata based on
-
Language versions:
/index.html- English (default, root URL)/ru/index.html- Russian version/uk/index.html- Ukrainian version
- Each language version file sets only
langvariable in front matter - All files include the same
index-content.html - Content is shown/hidden based on
page.langvalue using Liquid conditionals
To add new content visible in all languages:
- Edit
_includes/index-content.html - Add content with language conditionals:
{% if page.lang == 'en' %}English text{% endif %} {% if page.lang == 'ru' %}Русский текст{% endif %} {% if page.lang == 'uk' %}Український текст{% endif %}
jekyll build
# or
jekyll serve- English:
https://drrp-team.github.io/ - Russian:
https://drrp-team.github.io/ru/ - Ukrainian:
https://drrp-team.github.io/uk/