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