From 62b1e80fdf6926599b0c6ec3987edaaf2cb91e91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Ml=C3=A1dek?= Date: Mon, 13 Apr 2026 22:55:10 +0200 Subject: [PATCH 1/2] feat: allow extra_head and custom content additions --- templates/base.html | 1 + templates/index.html | 1 + templates/page.html | 1 + templates/section.html | 1 + 4 files changed, 4 insertions(+) diff --git a/templates/base.html b/templates/base.html index 22c7474..eaaff42 100644 --- a/templates/base.html +++ b/templates/base.html @@ -44,6 +44,7 @@ window.addEventListener('touchstart', loadGtag, { once: true }); {% endif %} + {% block extra_head %}{% endblock extra_head %} {% set root_section = get_section(path="_index.md") %} diff --git a/templates/index.html b/templates/index.html index b072eeb..6d7f98d 100644 --- a/templates/index.html +++ b/templates/index.html @@ -35,4 +35,5 @@

Latest Posts

No blog posts found.

{% endif %} {% endif %} +{{ super() }} {% endblock content %} diff --git a/templates/page.html b/templates/page.html index c369af0..0182bc3 100644 --- a/templates/page.html +++ b/templates/page.html @@ -21,4 +21,5 @@

{{ page.title }}

{{ page.content | safe }} +{{ super() }} {% endblock content %} diff --git a/templates/section.html b/templates/section.html index ad46037..d420663 100644 --- a/templates/section.html +++ b/templates/section.html @@ -40,4 +40,5 @@

{{ page.title }}

Next > {% endif %} +{{ super() }} {% endblock content %} From 62127abf9faad60e7dc0b40514537247d2beeddd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Ml=C3=A1dek?= Date: Fri, 24 Apr 2026 14:12:21 +0200 Subject: [PATCH 2/2] This is the greatest thing I have ever seen. - Me --- templates/404.html | 2 +- templates/base.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/404.html b/templates/404.html index 8d8d8c9..75bd9ad 100644 --- a/templates/404.html +++ b/templates/404.html @@ -7,5 +7,5 @@

404 - Page Not Found

It seems you've wandered off the beaten digital path.

Perhaps a quantum fluctuation, or maybe the page just packed up and left without a forwarding address.

-

No worries, you can always navigate back to the /home/ and try again.

+

No worries, you can always navigate back to the /home/ and try again.

{% endblock content %} diff --git a/templates/base.html b/templates/base.html index 22c7474..3549a50 100644 --- a/templates/base.html +++ b/templates/base.html @@ -49,7 +49,7 @@ {% set root_section = get_section(path="_index.md") %}