From 2ce68cd644c99d0dc858294bc42c0ad610d5f9ff Mon Sep 17 00:00:00 2001 From: Stephan Date: Sat, 6 Feb 2021 15:11:56 +0100 Subject: [PATCH] HTML von macro in Template verschoben, um Struktur im Template klar zu erkennen. --- templates/homepage.html | 4 +++- templates/macros/multisection.html | 4 +--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/homepage.html b/templates/homepage.html index 5032abb2..c440cc4d 100644 --- a/templates/homepage.html +++ b/templates/homepage.html @@ -17,7 +17,9 @@ {% endif %}
- {{ render_section(child) }} +
+ {{ render_section(child) }} +
{% endif %} diff --git a/templates/macros/multisection.html b/templates/macros/multisection.html index 171c614a..a958bb71 100644 --- a/templates/macros/multisection.html +++ b/templates/macros/multisection.html @@ -1,5 +1,3 @@ {% macro render_section(section) %} -
- {{ section.body }} -
+ {{ section.body }} {% endmacro %}