forked from drowl87/hextra_mirror
parent
55ff819dae
commit
b7558aca44
@ -5,17 +5,25 @@
|
|||||||
{{- $prev := cond $reversePagination .PrevInSection .NextInSection -}}
|
{{- $prev := cond $reversePagination .PrevInSection .NextInSection -}}
|
||||||
{{- $next := cond $reversePagination .NextInSection .PrevInSection -}}
|
{{- $next := cond $reversePagination .NextInSection .PrevInSection -}}
|
||||||
|
|
||||||
|
{{- if eq .Params.prev false }}
|
||||||
|
{{- if $reversePagination }}{{ $next = false }}{{ else }}{{ $prev = false }}{{ end -}}
|
||||||
|
{{ else }}
|
||||||
{{- with .Params.prev -}}
|
{{- with .Params.prev -}}
|
||||||
{{- with $.Site.GetPage . -}}
|
{{- with $.Site.GetPage . -}}
|
||||||
{{- if $reversePagination }}{{ $next = . }}{{ else }}{{ $prev = . }}{{ end -}}
|
{{- if $reversePagination }}{{ $next = . }}{{ else }}{{ $prev = . }}{{ end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- if eq .Params.next false }}
|
||||||
|
{{- if $reversePagination }}{{ $prev = false }}{{ else }}{{ $next = false }}{{ end -}}
|
||||||
|
{{ else }}
|
||||||
{{- with .Params.next -}}
|
{{- with .Params.next -}}
|
||||||
{{- with $.Site.GetPage . -}}
|
{{- with $.Site.GetPage . -}}
|
||||||
{{- if $reversePagination }}{{ $prev = . }}{{ else }}{{ $next = . }}{{ end -}}
|
{{- if $reversePagination }}{{ $prev = . }}{{ else }}{{ $next = . }}{{ end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
{{- if or $prev $next -}}
|
{{- if or $prev $next -}}
|
||||||
<div class="mb-8 flex items-center border-t pt-8 dark:border-neutral-800 contrast-more:border-neutral-400 dark:contrast-more:border-neutral-400 print:hidden">
|
<div class="mb-8 flex items-center border-t pt-8 dark:border-neutral-800 contrast-more:border-neutral-400 dark:contrast-more:border-neutral-400 print:hidden">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user