Umstellung der Meta-Daten in Partials
This commit is contained in:
parent
be11de4217
commit
1e520f3f39
9 changed files with 22 additions and 40 deletions
8
layouts/partials/meta/data.html
Normal file
8
layouts/partials/meta/data.html
Normal 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>
|
5
layouts/partials/meta/footer.html
Normal file
5
layouts/partials/meta/footer.html
Normal 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") -}}
|
2
layouts/partials/meta/footer_skill.html
Normal file
2
layouts/partials/meta/footer_skill.html
Normal file
|
@ -0,0 +1,2 @@
|
|||
{{ $skillIdent := .Site.Params.KnowHow.Skills | default "skills" }}
|
||||
{{- partial "taxonomy/metatag.html" (dict "Params" .Params "Ident" $skillIdent "Feather" "code") -}}
|
Loading…
Add table
Add a link
Reference in a new issue