Switch themes to minimo

This commit is contained in:
Dave Gallant
2021-09-06 11:55:05 -04:00
parent 75f9797c91
commit 4ff7aec7c1
302 changed files with 17841 additions and 607 deletions

View File

@@ -0,0 +1,17 @@
{{- $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 }}