hugo-theme-relearn/layouts/partials/pageHelper/prev.html
2023-12-01 01:03:51 +01:00

12 lines
No EOL
271 B
HTML

{{- $collection := .collection }}
{{- $item := .item }}
{{- $found := "" }}
{{- $result := "" }}
{{- range $collection }}
{{- if eq $item .Page.Page }}
{{- $result = $found }}
{{- break }}
{{- end }}
{{- $found = .Page.Page }}
{{- end }}
{{- return $result }}