binario/layouts/partials/post_meta.html

9 lines
303 B
HTML
Raw Normal View History

{{ $currentPage := .page }}
{{- if .page.Param "post_meta" }}
2018-11-16 14:50:56 +00:00
<div class="post__meta meta {{ .class }}">
{{- range $metaField := .page.Param "post_meta" -}}
2018-11-16 14:50:56 +00:00
{{- $metaFieldPath := printf "post_meta/%s.html" $metaField -}}
{{- partial $metaFieldPath $currentPage -}}
{{ end }}
</div>
2018-11-15 19:21:34 +00:00
{{ end }}