From ac0c00c33d221c2adf618be7b4191cb57bf13ea8 Mon Sep 17 00:00:00 2001 From: eclipse Date: Thu, 8 May 2025 22:04:18 +0200 Subject: [PATCH] improved import of stylesheets and javascript in templates to eliminate unnecessary requests --- ...{switchColorMode.js => SwitchColorMode.js} | 0 the_works/templates/base.html | 12 ++-- the_works/templates/views/text.html | 36 +++++------- the_works/templates/views/werk.html | 40 ++++++------- the_works/templates/views/werk_detail.html | 58 ++++++++++--------- 5 files changed, 69 insertions(+), 77 deletions(-) rename the_works/static/{switchColorMode.js => SwitchColorMode.js} (100%) diff --git a/the_works/static/switchColorMode.js b/the_works/static/SwitchColorMode.js similarity index 100% rename from the_works/static/switchColorMode.js rename to the_works/static/SwitchColorMode.js diff --git a/the_works/templates/base.html b/the_works/templates/base.html index 638b733..e792e96 100644 --- a/the_works/templates/base.html +++ b/the_works/templates/base.html @@ -8,15 +8,10 @@ - - - - - - {% block script %}{% endblock script %} + {% block head %}{% endblock head %}