mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-30 11:13:06 +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,19 +40,19 @@
|
||||||
<div class="navigation">
|
<div class="navigation">
|
||||||
{{- if and $ispublished ($.Scratch.Get "relearnNextPage") }}
|
{{- if and $ispublished ($.Scratch.Get "relearnNextPage") }}
|
||||||
{{- with ($.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 }}
|
{{- end }}
|
||||||
{{- else }}
|
{{- 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 }}
|
{{- end }}
|
||||||
</div>
|
</div>
|
||||||
<div class="navigation">
|
<div class="navigation">
|
||||||
{{- if and $ispublished ($.Scratch.Get "relearnPrevPage") }}
|
{{- if and $ispublished ($.Scratch.Get "relearnPrevPage") }}
|
||||||
{{- with ($.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}}
|
{{- end}}
|
||||||
{{- else }}
|
{{- 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}}
|
{{- end}}
|
||||||
</div>
|
</div>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
<div class="progress">
|
<div class="progress">
|
||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
{{ .TableOfContents }}
|
{{ .TableOfContents }}
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
Loading…
Reference in a new issue