mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 07:47:54 +00:00
13 lines
No EOL
297 B
HTML
13 lines
No EOL
297 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 }} |