From 8ee207dc1034eeeb8f48c0c9ca58c6f29df95ae7 Mon Sep 17 00:00:00 2001 From: xAlpharax <42233094+xAlpharax@users.noreply.github.com> Date: Sat, 2 Mar 2024 12:00:00 +0200 Subject: Massive changes regarding the core templates, static and config backbone Soon will be abstracted into a Hermit V3 theme that focuses on: - speed - efficiency - modularity - SEO: - good WCAG & - pagespeed metrics - suckless Changes to be committed: modified: config.toml modified: content/posts/code_test.md modified: content/posts/How I made this Blog with Zola.md deleted: sass/_icons.scss modified: sass/_predefined.scss modified: sass/style.scss modified: static/js/main.js modified: templates/404.html modified: templates/index.html modified: templates/macros.html modified: templates/page.html modified: templates/section.html modified: templates/tags/list.html modified: templates/tags/single.html --- templates/404.html | 62 +++++++++-- templates/index.html | 95 +++++++++------- templates/macros.html | 14 ++- templates/page.html | 272 ++++++++++++++++++++++++++------------------- templates/section.html | 17 +-- templates/tags/list.html | 7 +- templates/tags/single.html | 16 +-- 7 files changed, 289 insertions(+), 194 deletions(-) (limited to 'templates') diff --git a/templates/404.html b/templates/404.html index 1a7cbb3..d885ede 100644 --- a/templates/404.html +++ b/templates/404.html @@ -6,17 +6,59 @@ {% block main %}
-

- 404-lighthouse + +

+ + 404-lighthouse + + + + + + + + + + + + + + + + + + + + + +

+ + +
{% endblock main %} diff --git a/templates/index.html b/templates/index.html index 90a3f51..58eeb83 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,7 +1,9 @@ {% import "macros.html" as macros %} + + @@ -71,44 +73,54 @@ - {% block header %} - {% endblock header %} - - {% block title %} -
-
-

{{config.title}}

-

{{config.extra.home_subtitle}}

-
- {{macros::render_social_icons()}} -
- {% endblock title %} - {% block main %} - - {% endblock main %} -
- - {% block footer %} - - {% endblock footer %} -
- - - - + {% block header %} + {% endblock header %} + + {% block title %} +
+
+

{{config.title}}

+

{{config.extra.home_subtitle}}

+
+ {{macros::render_social_icons()}} +
+ {% endblock title %} + + {% block main %} + + {% endblock main %} +
+ + {% block footer %} + + {% endblock footer %} +
+ + + + @@ -116,17 +128,20 @@ + onload="renderMathInElement(document.body, { delimiters: [ {left: '$$', right: '$$', display: true}, {left: '$', right: '$', display: false}, {left: '\\[', right: '\\]', display: true}, {left: '\\(', right: '\\)', display: false}]});"> - {% if config.extra.google_analytics.enable %} + {% if config.extra.google_analytics.enable %} {% endif %} + + diff --git a/templates/macros.html b/templates/macros.html index e12a56e..1f5488f 100644 --- a/templates/macros.html +++ b/templates/macros.html @@ -10,11 +10,15 @@ {% macro footer() %} {% endmacro footer %} diff --git a/templates/page.html b/templates/page.html index d10adbc..eb7d141 100644 --- a/templates/page.html +++ b/templates/page.html @@ -10,7 +10,6 @@ {{ config.title }}