mirror of
https://github.com/Vimux/Binario.git
synced 2024-11-11 01:38:28 +00:00
77b9fc1ec7
Unified a variable name to pass context across layouts partials
9 lines
No EOL
303 B
HTML
9 lines
No EOL
303 B
HTML
{{ $currentPage := .page }}
|
|
{{- if .page.Param "post_meta" }}
|
|
<div class="post__meta meta {{ .class }}">
|
|
{{- range $metaField := .page.Param "post_meta" -}}
|
|
{{- $metaFieldPath := printf "post_meta/%s.html" $metaField -}}
|
|
{{- partial $metaFieldPath $currentPage -}}
|
|
{{ end }}
|
|
</div>
|
|
{{ end }} |