binario/layouts/partials/post_meta.html
2018-11-16 09:50:56 -05:00

9 lines
No EOL
300 B
HTML

{{ $currentPage := .dot }}
{{- if .dot.Param "post_meta" }}
<div class="post__meta meta {{ .class }}">
{{- range $metaField := .dot.Param "post_meta" -}}
{{- $metaFieldPath := printf "post_meta/%s.html" $metaField -}}
{{- partial $metaFieldPath $currentPage -}}
{{ end }}
</div>
{{ end }}