mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-24 00:03:10 +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 }} |