mirror of https://github.com/jpanther/congo.git
🌐 Use language specific date formats
parent
9c8601102c
commit
6eab5f95fb
|
@ -1,10 +1,14 @@
|
||||||
languageCode = "en"
|
languageCode = "en"
|
||||||
languageName = "English"
|
languageName = "English"
|
||||||
|
displayName = "EN"
|
||||||
|
htmlCode = "en"
|
||||||
weight = 1
|
weight = 1
|
||||||
|
|
||||||
title = "Congo EN"
|
title = "Congo"
|
||||||
# copyright = "Copy, _right?_ :thinking_face:"
|
# copyright = "Copy, _right?_ :thinking_face:"
|
||||||
|
|
||||||
|
dateFormat = "2 January 2006"
|
||||||
|
|
||||||
[author]
|
[author]
|
||||||
# name = "Your name here"
|
# name = "Your name here"
|
||||||
# image = "img/author.jpg"
|
# image = "img/author.jpg"
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
[hugoVersion]
|
[hugoVersion]
|
||||||
extended = false
|
extended = false
|
||||||
min = "0.86.1"
|
min = "0.87.0"
|
||||||
|
|
|
@ -19,7 +19,6 @@ colorScheme = "congo"
|
||||||
|
|
||||||
[article]
|
[article]
|
||||||
showDate = true
|
showDate = true
|
||||||
dateFormat = "2 January 2006"
|
|
||||||
showAuthor = true
|
showAuthor = true
|
||||||
showBreadcrumbs = false
|
showBreadcrumbs = false
|
||||||
showDraftLabel = true
|
showDraftLabel = true
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
# https://jpanther.github.io/congo/docs/getting-started/
|
# https://jpanther.github.io/congo/docs/getting-started/
|
||||||
|
|
||||||
theme = "congo"
|
theme = "congo"
|
||||||
defaultContentLanguage = "en-au"
|
defaultContentLanguage = "en"
|
||||||
|
|
||||||
enableEmoji = true
|
enableEmoji = true
|
||||||
enableRobotsTXT = true
|
enableRobotsTXT = true
|
||||||
|
|
|
@ -7,6 +7,8 @@ weight = 1
|
||||||
title = "Congo"
|
title = "Congo"
|
||||||
# copyright = "Copy, _right?_ :thinking_face:"
|
# copyright = "Copy, _right?_ :thinking_face:"
|
||||||
|
|
||||||
|
dateFormat = "2 January 2006"
|
||||||
|
|
||||||
[author]
|
[author]
|
||||||
name = "Congo"
|
name = "Congo"
|
||||||
image = "img/author.jpg"
|
image = "img/author.jpg"
|
|
@ -19,7 +19,6 @@ mainSections = ["samples"]
|
||||||
|
|
||||||
[article]
|
[article]
|
||||||
showDate = true
|
showDate = true
|
||||||
dateFormat = "2 January 2006"
|
|
||||||
showAuthor = true
|
showAuthor = true
|
||||||
showBreadcrumbs = true
|
showBreadcrumbs = true
|
||||||
showDraftLabel = true
|
showDraftLabel = true
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
<time datetime="{{ .Date }}">
|
<time datetime="{{ .Date }}">
|
||||||
{{- .Date.Format (.Site.Params.article.dateFormat | default "2 January 2006") -}}
|
{{- .Date | time.Format (.Site.Language.Params.dateFormat | default ":date_long") -}}
|
||||||
</time>
|
</time>
|
||||||
{{ if .Params.showDateUpdated | default (.Site.Params.article.showDateUpdated | default false) }}
|
{{ if .Params.showDateUpdated | default (.Site.Params.article.showDateUpdated | default false) }}
|
||||||
(Updated:
|
(Updated:
|
||||||
<time datetime="{{ .Lastmod }}">
|
<time datetime="{{ .Lastmod }}">
|
||||||
{{- .Lastmod.Format (.Site.Params.article.dateFormat | default "2 January 2006") -}}
|
{{- .Date | time.Format (.Site.Language.Params.dateFormat | default ":date_long") -}}
|
||||||
</time>
|
</time>
|
||||||
)
|
)
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in New Issue