binario/layouts/partials/post_meta.html
vimux 77b9fc1ec7
Rename context variable: "dot" -> "page"
Unified a variable name to pass context across layouts partials
2019-10-01 13:05:17 -04:00

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 }}