From 9c4cf93a1fb6da6f551331f23608dd765b85f7c0 Mon Sep 17 00:00:00 2001 From: Dominik George <dominik.george@teckids.org> Date: Thu, 30 Jan 2025 21:50:54 +0100 Subject: [PATCH] Add message about translation being incomplete --- content/_index.en.md | 5 +++++ templates/frontpage/claim.html | 10 ++++++++++ 2 files changed, 15 insertions(+) diff --git a/content/_index.en.md b/content/_index.en.md index 1e45167..c9311dc 100644 --- a/content/_index.en.md +++ b/content/_index.en.md @@ -1,4 +1,9 @@ +++ +[extra.hero.message] +class = "warning" +title = "Translation is incomplete" +content = "Please be aware that this translation of our website is incomplete. For any questions and for cooperations, please contact us." + [[extra.claims]] title = "Challenging technology" content = "How devices and apps work, what they do and which intentions developers pursue: Everyone shall be able to critically scrutinise all of that – and everyone shall have the rights to do so!" diff --git a/templates/frontpage/claim.html b/templates/frontpage/claim.html index 2854f1e..2f66b06 100644 --- a/templates/frontpage/claim.html +++ b/templates/frontpage/claim.html @@ -5,6 +5,16 @@ > <div class="hero-body"> <div class="container"> + {% if section.extra.hero.message %} + <aside class="message is-{{ section.extra.hero.message.class }} section"> + <div class="message-header"> + <p>{{ section.extra.hero.message.title }}</p> + </div> + <div class="message-body"> + {{ section.extra.hero.message.content }} + </div> + </aside> + {% endif %} <p class="title is-1 has-text-centered" property="schema:slogan">{{ config.description }}</p> <div class="columns is-same-height mt-4"> {% for claim in section.extra.claims %} -- GitLab