Creates a banner on translated page as requested in Disroot/Disroot-Project#147 To used a banner, you simply need to modify `modular.en.md` in the website repo, so for example `pages/05.community/modular.en.md` and add: ``` translation_banner: set: true last_modified: December 2021 language: German ``` `Set`: you can disable it, for example on English page. `last_modified`: pretty obvious... `language`: set the language of the banner text, so here the German version would appear. See attached preview What has to be done: - [ ] Agree on text - [ ] Agree on design / colors - [ ] Translate agreed text While I was working on this, I also found some not related errors that I corrected. Co-authored-by: meaz <meaz@disroot.org> Reviewed-on: Disroot/grav-theme-disroot#55 Reviewed-by: antilopa <antilopa@no-reply@disroot.org>
16 lines
521 B
Twig
16 lines
521 B
Twig
{% block content %}
|
|
|
|
{% if page.header.section_id %}
|
|
<section id="{{ page.header.section_id }}">
|
|
{% else %}
|
|
<section id="{{ page.slug }}">
|
|
{% endif %}
|
|
|
|
<div class="fullbar" style="background-color:{{ page.header.bgcolor }}; {% if page.header.padding %} padding:{{ page.header.padding }}; {% endif %}">
|
|
<div class="fullbar-content" style="color:{{ page.header.fontcolor }}; text-align:{{ page.header.text_align }};">
|
|
{{ page.content|raw }}
|
|
</div>
|
|
</div>
|
|
</section>
|
|
{% endblock %}
|