mirror of
https://github.com/TrezOne/congo-hindi-gujarati.git
synced 2026-06-17 22:12:54 -04:00
💄 Adjust metadata output
This commit is contained in:
@@ -13,7 +13,11 @@
|
||||
|
||||
{{/* Gather partials for this context */}}
|
||||
{{ if .Params.showDate | default (.Site.Params.article.showDate | default true) }}
|
||||
{{ $meta.Add "partials" (slice (partial "meta/date.html" .)) }}
|
||||
{{ $meta.Add "partials" (slice (partial "meta/date.html" .Date)) }}
|
||||
{{ end }}
|
||||
|
||||
{{ if .Params.showDateUpdated | default (.Site.Params.article.showDateUpdated | default false) }}
|
||||
{{ $meta.Add "partials" (slice (partial "meta/date-updated.html" .Lastmod)) }}
|
||||
{{ end }}
|
||||
|
||||
{{ if and (.Params.showWordCount | default (.Site.Params.article.showWordCount | default false)) (ne .WordCount 0) }}
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
{{- i18n "article.updated" -}}:
|
||||
{{ partial "meta/date.html" . }}
|
||||
{{- /* Trim EOF */ -}}
|
||||
@@ -1,11 +1,4 @@
|
||||
<time datetime="{{ .Date }}">
|
||||
{{- .Date.Format (.Site.Params.article.dateFormat | default "2 January 2006") -}}
|
||||
<time datetime="{{ . }}">
|
||||
{{- . | time.Format (site.Params.article.dateFormat | default "2 January 2006") -}}
|
||||
</time>
|
||||
{{ if .Params.showDateUpdated | default (.Site.Params.article.showDateUpdated | default false) }}
|
||||
(Updated:
|
||||
<time datetime="{{ .Lastmod }}">
|
||||
{{- .Lastmod.Format (.Site.Params.article.dateFormat | default "2 January 2006") -}}
|
||||
</time>
|
||||
)
|
||||
{{ end }}
|
||||
{{- /* Trim EOF */ -}}
|
||||
|
||||
Reference in New Issue
Block a user