thrrgilag.net/themes/binario/layouts/partials/post_meta.html

9 lines
300 B
HTML
Raw Normal View History

2019-09-07 19:40:58 +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>
{{ end }}