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,19 +40,19 @@
<div class="navigation">
{{- if and $ispublished ($.Scratch.Get "relearnNextPage") }}
{{- with ($.Scratch.Get "relearnNextPage") }}
<a class="nav nav-next" href="{{.RelPermalink}}" title="{{.Title}}"><i class="fas fa-chevron-right fa-fw"></i></a>
<a class="nav nav-next" href="{{.RelPermalink}}" title="{{.Title}}"><i class="fas fa-chevron-right fa-fw"></i></a>
{{- end }}
{{- else }}
<span class="nav nav-next"><i class="fa fa-chevron-right fa-fw"></i></span>
<span class="nav nav-next"><i class="fa fa-chevron-right fa-fw"></i></span>
{{- end }}
</div>
<div class="navigation">
{{- if and $ispublished ($.Scratch.Get "relearnPrevPage") }}
{{- with ($.Scratch.Get "relearnPrevPage") }}
<a class="nav nav-prev" href="{{.RelPermalink}}" title="{{.Title}}"><i class="fas fa-chevron-left fa-fw"></i></a>
<a class="nav nav-prev" href="{{.RelPermalink}}" title="{{.Title}}"><i class="fas fa-chevron-left fa-fw"></i></a>
{{- end}}
{{- else }}
<span class="nav nav-prev"><i class="fa fa-chevron-left fa-fw"></i></span>
<span class="nav nav-prev"><i class="fa fa-chevron-left fa-fw"></i></span>
{{- end}}
</div>
{{- end }}

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>

View file

@ -1,6 +1,6 @@
<div class="progress">
<div class="wrapper">
<div class="progress">
<div class="wrapper">
{{ .TableOfContents }}
</div>
</div>
</div>