From 418145af5554d935e8ed66d5726094a41c281164 Mon Sep 17 00:00:00 2001 From: RogerHaase Date: Wed, 11 Jun 2025 13:50:09 -0700 Subject: [PATCH] change focus theme layout.html to load main.js after other scripts add "use strict" to main.js; fixes #1944 --- src/moin/themes/focus/static/js/main.js | 1 + src/moin/themes/focus/templates/layout.html | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/moin/themes/focus/static/js/main.js b/src/moin/themes/focus/static/js/main.js index d13291de5..9041289dc 100644 --- a/src/moin/themes/focus/static/js/main.js +++ b/src/moin/themes/focus/static/js/main.js @@ -1,4 +1,5 @@ window.onload = function () { + "use strict"; const headers = [] const h1 = document.querySelectorAll("#moin-content-data h1") const h2 = document.querySelectorAll("#moin-content-data h2") diff --git a/src/moin/themes/focus/templates/layout.html b/src/moin/themes/focus/templates/layout.html index 879951b3c..c86d435af 100644 --- a/src/moin/themes/focus/templates/layout.html +++ b/src/moin/themes/focus/templates/layout.html @@ -13,7 +13,6 @@ {% set credits = snippets.credits() %} {% block layout %} -
{{ before_header }}
@@ -183,3 +182,8 @@
{% endblock %} + +{% block body_scripts %} + {{ super() }} + +{% endblock %}