Umstellung der Meta-Daten in Partials

This commit is contained in:
mdn 2022-11-28 22:36:47 +01:00
parent be11de4217
commit 1e520f3f39
9 changed files with 22 additions and 40 deletions

View file

@ -0,0 +1,8 @@
{{ $dateTime := .PublishDate.Format "2006-01-02" }}
{{ $dateTimeMod := .Lastmod.Format "2006-01-02" }}
{{ $dateFormat := .Site.Params.dateFormat | default "Jan 2, 2006" }}
<i data-feather="calendar"></i>
<time datetime="{{ $dateTime }}">{{ .PublishDate.Format $dateFormat }}</time>
<i data-feather="user"></i>
{{ .Page.Params.Author }}
<span class="badge bg-secondary"><time datetime="{{ $dateTimeMod }}">{{ .Lastmod.Format $dateFormat }}</time></span>

View file

@ -0,0 +1,5 @@
{{ $tagsIdent := .Site.Params.Blog.Tags | default "tags" }}
{{- partial "taxonomy/metatag.html" (dict "Params" .Params "Ident" $tagsIdent "Feather" "tag") -}}
{{ $catIdent := .Site.Params.Blog.Categories | default "categories" }}
{{- partial "taxonomy/metatag.html" (dict "Params" .Params "Ident" $catIdent "Feather" "award") -}}

View file

@ -0,0 +1,2 @@
{{ $skillIdent := .Site.Params.KnowHow.Skills | default "skills" }}
{{- partial "taxonomy/metatag.html" (dict "Params" .Params "Ident" $skillIdent "Feather" "code") -}}