From 2c1b00f3094321ba9fd3121e723823b96dfbc528 Mon Sep 17 00:00:00 2001 From: xAlpharax <42233094+xAlpharax@users.noreply.github.com> Date: Sun, 25 Feb 2024 23:04:38 +0200 Subject: Massive changes - improvements in performance, accesability and SEO as well as best practices Changes to be committed: deleted: static/js/copy.js modified: static/js/main.js modified: config.toml modified: content/posts/code_test.md modified: templates/404.html modified: templates/index.html modified: templates/macros.html modified: templates/page.html modified: templates/section.html modified: templates/tags/single.html --- templates/404.html | 4 +- templates/index.html | 105 +++++++++++++++++---------------------------- templates/macros.html | 9 ++-- templates/page.html | 21 +++++---- templates/section.html | 3 +- templates/tags/single.html | 3 +- 6 files changed, 57 insertions(+), 88 deletions(-) (limited to 'templates') diff --git a/templates/404.html b/templates/404.html index b044965..1a7cbb3 100644 --- a/templates/404.html +++ b/templates/404.html @@ -11,10 +11,10 @@

diff --git a/templates/index.html b/templates/index.html index 2a9b9a5..90a3f51 100644 --- a/templates/index.html +++ b/templates/index.html @@ -6,45 +6,45 @@ - - - - + + + + - + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + - - + + + @@ -52,10 +52,11 @@ - + - + + {% if page.title %} @@ -107,52 +108,24 @@ - - - - + + - {% if config.extra.highlightjs.enable %} - - - - - - {% if config.extra.highlightjs.clipboard %} - - - {% endif %} - - {% endif %} - - {% if not config.extra.highlightjs.enable %} - - {% endif %} - + + - {% block js_footer %} - {% endblock js_footer %} + + {% if config.extra.google_analytics.enable %} {% endif %} diff --git a/templates/macros.html b/templates/macros.html index 302bf43..e12a56e 100644 --- a/templates/macros.html +++ b/templates/macros.html @@ -1,9 +1,9 @@ {% macro read_time(words) %} - {% if words < 530 %} + {% if words < 500 %} 1 min read {% else %} - {{ words / 265 | round }} min read + {{ words / 250 | round }} min read {% endif %} {% endmacro read_time %} @@ -13,7 +13,7 @@

© {{ now() | date(format="%Y") }} {{ config.extra.author.name }}{{ config.extra.footer_copyright | safe }}

Made with Zola · Theme Hermit_Zola {% if config.generate_feed %} - · + · {% endif %}

@@ -21,8 +21,7 @@ {% macro render_social_icons() %} {% for icon in config.extra.hermit_social %} - + {% if icon.name == "codepen" %} {% elif icon.name == "facebook" %} diff --git a/templates/page.html b/templates/page.html index 15ccebc..d10adbc 100644 --- a/templates/page.html +++ b/templates/page.html @@ -31,8 +31,7 @@ stroke-width="2" stroke-linecap="round" stroke-linejoin="round" - class="feather feather-menu" - > + class="feather feather-menu"> @@ -81,9 +80,9 @@
- {{ page.content | safe }}
+