From 30ea88e8d8c201c3fcce409a54712de820610dff Mon Sep 17 00:00:00 2001 From: Jieiku Date: Mon, 30 May 2022 23:20:43 -0700 Subject: Add Favicons, Add Head Macro, 404 noindex, config.toml Resources, Whitespace Cleanup --- templates/page.html | 65 +++++++++++++++++++++++++---------------------------- 1 file changed, 30 insertions(+), 35 deletions(-) (limited to 'templates/page.html') diff --git a/templates/page.html b/templates/page.html index f92574e..6ea50d6 100644 --- a/templates/page.html +++ b/templates/page.html @@ -1,40 +1,35 @@ {% extends "base.html" %} {% import "macros/macros.html" as macros %} -{{config.title}} - {{page.title}} -{% block content %} -
- {{ macros::title(page=page) }} +{%- block content %} +
+ {{- macros::title(page=page) }} {{ page.content | safe }} - {% block page_before_footer %} - {% endblock page_before_footer %} - {% block page_footer %} - {{ macros::footer(page=page) }} - {% endblock page_footer %} - {% block page_after_footer %} - {% endblock page_after_footer %} -
- {% block toc %} - {% if page.extra.toc %} - {% set toc = page.toc %} - {% endif %} - {% if toc %} -
-
-

Index

- {% for h in toc %} - - {% if h.children %} - {% for h2 in h.children %} - - {% endfor %} - {% endif %} - {% endfor %} + {%- block page_footer %} + {{- macros::footer(page=page) }} + {%- endblock page_footer %} +
+ {%- block toc %} + {%- if page.extra.toc %} + {%- set toc = page.toc %} + {%- endif %} + {%- if toc %} +
+
+

Index

+ {%- for h in toc %} + + {%- if h.children %} + {%- for h2 in h.children %} + + {%- endfor %} + {%- endif %} + {%- endfor %}
- {% endif %} - {% endblock toc %} -{% endblock content %} +
+ {%- endif %} + {%- endblock toc %} +{%- endblock content %} -- cgit v1.3.1