mirror of
https://github.com/davegallant/davegallant.github.io.git
synced 2025-08-08 01:22:29 +00:00
Switch themes to minimo
This commit is contained in:
17
themes/minimo/layouts/partials/entry/meta.html
Normal file
17
themes/minimo/layouts/partials/entry/meta.html
Normal 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 }}
|
Reference in New Issue
Block a user