mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 01:33:04 +00:00
theme: further JS adjustments
This commit is contained in:
parent
985eacea7e
commit
73dde63ccd
3 changed files with 10 additions and 10 deletions
|
@ -40,10 +40,10 @@
|
||||||
window.T_Copy_link_to_clipboard = '{{ T "Copy-link-to-clipboard" | safeJS }}';
|
window.T_Copy_link_to_clipboard = '{{ T "Copy-link-to-clipboard" | safeJS }}';
|
||||||
window.T_Link_copied_to_clipboard = '{{ T "Link-copied-to-clipboard" | safeJS }}';
|
window.T_Link_copied_to_clipboard = '{{ T "Link-copied-to-clipboard" | safeJS }}';
|
||||||
{{ "// some further base stuff" | safeJS }}
|
{{ "// some further base stuff" | safeJS }}
|
||||||
var baseUriFull="{{ .Site.BaseURL | safeJS }}";
|
var baseUriFull='{{ trim .Site.BaseURL "/" | safeJS }}/';
|
||||||
{{- $quotedthemevariants := slice }}
|
{{- $quotedthemevariants := slice }}
|
||||||
{{- range $themevariants }}
|
{{- range $themevariants }}
|
||||||
{{- $quotedthemevariants = $quotedthemevariants | append (printf "\"%s\"" .) }}
|
{{- $quotedthemevariants = $quotedthemevariants | append (printf "'%s'" .) }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
variants.init( [ {{ delimit $quotedthemevariants ", " | safeJS }} ] );
|
variants.init( [ {{ delimit $quotedthemevariants ", " | safeJS }} ] );
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue