binario/layouts/partials/post_meta.html

9 lines
300 B
HTML
Raw Normal View History

2018-11-16 14:50:56 +00:00
{{ $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>
2018-11-15 19:21:34 +00:00
{{ end }}