mirror of
https://github.com/davegallant/davegallant.github.io.git
synced 2025-08-07 00:58:13 +00:00
18 lines
568 B
HTML
18 lines
568 B
HTML
{{- $defaultConfig := slice "page" -}}
|
|
{{- $config := .Site.Params.settings.hideEntryMeta | default $defaultConfig -}}
|
|
{{- $configType := ( printf "%T" $config ) -}}
|
|
|
|
{{- if ( eq $configType "bool" ) -}}
|
|
{{- $.Scratch.Set "showEntryMeta" ( not $config ) -}}
|
|
{{- else -}}
|
|
{{- $.Scratch.Set "showEntryMeta" ( not ( in $config .Section ) ) -}}
|
|
{{- end -}}
|
|
|
|
{{- if ( $.Scratch.Get "showEntryMeta" ) -}}
|
|
<div class='entry-meta'>
|
|
{{ partial "entry/meta/posted-on" . }}
|
|
{{ partial "entry/meta/author" . }}
|
|
{{ partial "entry/meta/reading-time" . }}
|
|
</div>
|
|
{{ end }}
|