hugo-theme-relearn/layouts/partials/pageHelper/prev.html

12 lines
271 B
HTML
Raw Normal View History

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