From 0866d0725b38373cd15c4341232586a5065c52f3 Mon Sep 17 00:00:00 2001 From: daudix Date: Fri, 19 Jul 2024 22:26:15 +0300 Subject: [PATCH] Make more XHTML5 compliant in theory (fixes #31) --- templates/base.html | 4 +--- templates/partials/comments.html | 2 +- templates/partials/copy_button.html | 2 +- templates/partials/head.html | 15 +++++++-------- templates/partials/search.html | 2 +- 5 files changed, 11 insertions(+), 14 deletions(-) diff --git a/templates/base.html b/templates/base.html index a3075bb..c6ad190 100644 --- a/templates/base.html +++ b/templates/base.html @@ -7,10 +7,8 @@ {%- set rtl_languages = ["ar", "arc", "az", "dv", "ff", "he", "ku", "nqo", "fa", "rhg", "syc", "ur"] -%} - - + {% include "partials/head.html" %} - {%- if config.extra.nav.links %} {% include "partials/nav.html" %} diff --git a/templates/partials/comments.html b/templates/partials/comments.html index 760f5e7..9ea434e 100644 --- a/templates/partials/comments.html +++ b/templates/partials/comments.html @@ -34,7 +34,7 @@

{{ macros_translate::translate(key="comments_noscript", default="Loading comments relies on JavaScript. Try enabling JavaScript and reloading, or visit the original post on Mastodon.", language_strings=language_strings) }}

- + @@ -70,7 +69,7 @@ {%- if scripts | length > 0 %} {%- for script in scripts %} - + {%- endfor %} {%- endif %} diff --git a/templates/partials/search.html b/templates/partials/search.html index 1e3b0e5..6983549 100644 --- a/templates/partials/search.html +++ b/templates/partials/search.html @@ -1,6 +1,6 @@ {#- Based on https://github.com/getzola/zola/blob/master/docs/static/search.js -#} -