From 5e2d8e1eed503f47738462515befc247f154b0b2 Mon Sep 17 00:00:00 2001 From: Dominik George <dominik.george@teckids.org> Date: Mon, 30 Nov 2020 23:52:05 +0100 Subject: [PATCH] Update page template --- templates/{page.html => page_default.html} | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) rename templates/{page.html => page_default.html} (85%) diff --git a/templates/page.html b/templates/page_default.html similarity index 85% rename from templates/page.html rename to templates/page_default.html index 00a5420..f682707 100644 --- a/templates/page.html +++ b/templates/page_default.html @@ -36,15 +36,8 @@ {% block content %} <section class='page_content'> - {{ page.content }} + {% if page %} + {{ page.content }} + {% endif %} </section> {% endblock content %} - -{% block sponsorstext %} -{{ SPONSORSTEXTS[page.lang] }} -{% endblock %} - -{% block languagefooter %} -{% import 'translations.html' as translations with context %} -{{ translations.translations_for(page) }} -{% endblock %} -- GitLab