From 73dde63ccd372f236c8993e2ff13c173e43b8d51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Mon, 7 Mar 2022 18:25:33 +0100 Subject: [PATCH] theme: further JS adjustments --- layouts/partials/header.html | 8 ++++---- layouts/partials/stylesheet.html | 4 ++-- layouts/partials/toc.html | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/layouts/partials/header.html b/layouts/partials/header.html index c3c3d9f478..1ae1cf54a7 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -40,19 +40,19 @@ {{- end }} diff --git a/layouts/partials/stylesheet.html b/layouts/partials/stylesheet.html index 163114be8c..336ae986fb 100644 --- a/layouts/partials/stylesheet.html +++ b/layouts/partials/stylesheet.html @@ -40,10 +40,10 @@ window.T_Copy_link_to_clipboard = '{{ T "Copy-link-to-clipboard" | safeJS }}'; window.T_Link_copied_to_clipboard = '{{ T "Link-copied-to-clipboard" | safeJS }}'; {{ "// some further base stuff" | safeJS }} - var baseUriFull="{{ .Site.BaseURL | safeJS }}"; + var baseUriFull='{{ trim .Site.BaseURL "/" | safeJS }}/'; {{- $quotedthemevariants := slice }} {{- range $themevariants }} - {{- $quotedthemevariants = $quotedthemevariants | append (printf "\"%s\"" .) }} + {{- $quotedthemevariants = $quotedthemevariants | append (printf "'%s'" .) }} {{- end }} variants.init( [ {{ delimit $quotedthemevariants ", " | safeJS }} ] ); diff --git a/layouts/partials/toc.html b/layouts/partials/toc.html index 677562029c..099bb8a9ca 100644 --- a/layouts/partials/toc.html +++ b/layouts/partials/toc.html @@ -1,6 +1,6 @@ -
-
+
+
{{ .TableOfContents }} -
-
\ No newline at end of file +
+
\ No newline at end of file