hugo-theme-relearn/layouts/partials/pageHelper/next.html
2024-10-11 16:45:38 +02:00

13 lines
No EOL
300 B
HTML

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