From: Michael Tremer Date: Sun, 2 Jan 2022 18:01:41 +0000 (+0000) Subject: templates: Wrap everything in the base template into a body block X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=19cdebff8139d2e09f69d82684ee008df5e747fb;p=people%2Fms%2Fwestferry.git templates: Wrap everything in the base template into a body block This is useful when we want to replace pretty much everything. Signed-off-by: Michael Tremer --- diff --git a/src/templates/base.html b/src/templates/base.html index a1b1840..083cb39 100644 --- a/src/templates/base.html +++ b/src/templates/base.html @@ -20,46 +20,48 @@ -
-
-
- {% module TopbarMenu(handler.topmenu) %} -
+ {% block body %} +
+
+
+ {% module TopbarMenu(handler.topmenu) %} +
-
- +
-
-
- {% if menu %} -
-
{{ menu.title }}
+
+ {% if menu %} +
+
{{ menu.title }}
- {% module SidebarMenu(menu) %} -
- {% end %} + {% module SidebarMenu(menu) %} +
+ {% end %} -
- {% block main %}{% end block %} +
+ {% block main %}{% end block %} +
-
+ {% end block %}