2023-09-18 18:24:49 +00:00
|
|
|
{{- $onwidths := cond (isset . "onwidths") .onwidths "show" }}
|
|
|
|
{{- $onwidthm := cond (isset . "onwidthm") .onwidthm "show" }}
|
|
|
|
{{- $onwidthl := cond (isset . "onwidthl") .onwidthl "show" }}
|
|
|
|
{{- with .page }}
|
|
|
|
{{- $showPrevNext := (and (not .Params.disableNextPrev) (not .Site.Params.disableNextPrev)) }}
|
2024-04-07 19:41:06 +00:00
|
|
|
{{- if $showPrevNext }}
|
2023-09-18 18:24:49 +00:00
|
|
|
{{- $endarrow := "🡒" }}
|
2023-11-28 20:39:50 +00:00
|
|
|
{{- if eq (.Language.LanguageDirection | default (T "Reading-direction") | default "ltr") "rtl" }}
|
2023-09-18 18:24:49 +00:00
|
|
|
{{- $endarrow = "🡐" }}
|
|
|
|
{{- end }}
|
2024-09-07 22:12:10 +00:00
|
|
|
{{- $next := partialCached "_relearn/pageNext.gotmpl" . .Path }}
|
2024-08-29 10:28:34 +00:00
|
|
|
{{- $nextTitle := partial "title.gotmpl" (dict "page" $next "outputFormat" "html") }}
|
2023-09-18 18:24:49 +00:00
|
|
|
{{- partial "topbar/func/button.html" (dict
|
|
|
|
"page" .
|
|
|
|
"class" "topbar-button-next"
|
2024-08-29 10:28:34 +00:00
|
|
|
"href" (partial "permalink.gotmpl" (dict "to" $next))
|
2023-09-18 18:24:49 +00:00
|
|
|
"icon" "chevron-right"
|
|
|
|
"onwidths" $onwidths
|
|
|
|
"onwidthm" $onwidthm
|
|
|
|
"onwidthl" $onwidthl
|
2024-02-14 22:16:08 +00:00
|
|
|
"hint" (printf "%s (%s)" $nextTitle ($endarrow | safeHTML))
|
2023-09-18 18:24:49 +00:00
|
|
|
)}}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|