Implimenting language support starting with German

- Reviewed the cecil documentation for configs
- Moved the language picker to the right spot in the template
- Turned it off

Ok so if you only have two pages in German the menu for when in German is only those to pages. I need figure out it can fall back to English.
This commit is contained in:
Alice Rhodes 2024-07-17 16:37:56 -04:00
parent f2d3acc7e5
commit d56fcd4943
5 changed files with 3 additions and 4 deletions

View File

@ -5,6 +5,7 @@ menu:
main:
weight: 2
layout: index
language: de
---
### Erste Schritte

View File

@ -5,6 +5,7 @@ menu:
main:
weight: 1
layout: index
language: de
---

View File

@ -6,8 +6,6 @@ menu:
weight: 1
layout: index
---
<p class="focus-text highlighted">
Veilid is an
<span class="highlighter-1">open-source</span>,

View File

@ -12,8 +12,8 @@
{% include 'partials/header.html.twig' %}
<div class="page-content p-3" id="content">
<div class="container">
{# include 'partials/languages.html.twig' #}
{%- block content ~%}
{% include 'partials/languages.html.twig' %}
{%- block content_header %}
<div class="take-back-control">
<h2 id="page-title">{{ page.title }}</h2>

View File

@ -18,5 +18,4 @@
</div>
{% endblock content_header ~%}
{{- page.content ~}}
{%- endblock content ~%}