binario/layouts/partials/entry/meta.html
vimux 7bffa43920
BREAKING CHANGE: rename Post → Entry
* .Site.Params.post_meta → .Site.Params.Entry.meta
* .Site.Params.toc → .Site.Params.Entry.toc
* .Site.Params.tocOpen → .Site.Params.Entry.tocOpen
2020-02-11 09:27:01 -05:00

11 lines
No EOL
315 B
HTML

{{- $page := .page -}}
{{- $pageMeta := default $page.Site.Params.Entry.meta $page.Params.meta -}}
{{- with $pageMeta }}
<div class="entry__meta meta {{ $.class }}">
{{- range . }}
{{- $metaFieldPath := printf "entry/meta/%s.html" . -}}
{{- partial $metaFieldPath $page -}}
{{- end }}
</div>
{{- end }}