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