From 561c595e4ec143d5336f7f70f030e2d13175748d Mon Sep 17 00:00:00 2001 From: mo8it Date: Tue, 30 May 2023 16:10:24 +0200 Subject: [PATCH] Starting point for base --- templates/base.html | 75 +++++++++++++++++++++++---------------------- 1 file changed, 38 insertions(+), 37 deletions(-) diff --git a/templates/base.html b/templates/base.html index 1bccf38..a64c052 100644 --- a/templates/base.html +++ b/templates/base.html @@ -5,56 +5,57 @@ - {% if page.title %} - {{ page.title }} - {% elif section.title %} - {{ section.title }} - {% else %} - {{ config.title }} - {% endif %} + {%- block title -%} + {%- if page.title -%} + {{- page.title -}} + {%- elif section.title -%} + {{- section.title -}} + {%- else -%} + {{- config.title -}} + {%- endif -%} + {%- endblock -%} - {% set image = resize_image(path=config.extra.logo_path, width=32, height=32, op="fill") %} - + - + + - - {% block styles %}{% endblock %} - - {% include "partials/nav.html" %} + +
+ + + -
-
+ +
+
{% block content %}{% endblock %} +
-
- - -