mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 09:43:06 +00:00
13 lines
297 B
HTML
13 lines
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 }}
|