theme: further JS adjustments

This commit is contained in:
Sören Weber 2022-03-07 18:25:33 +01:00
parent 985eacea7e
commit 73dde63ccd
No known key found for this signature in database
GPG key ID: 07D17FF580AE7589
3 changed files with 10 additions and 10 deletions

View file

@ -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 }} ] );
</script>