mirror of
https://github.com/TrezOne/congo-hindi-gujarati.git
synced 2026-07-13 15:11:19 -04:00
🌐 Add better i18n support for article metadata
This commit is contained in:
@@ -0,0 +1 @@
|
||||
{{ return time.Format (site.Language.Params.dateFormat | default ":date_long") . }}
|
||||
@@ -1,3 +1,4 @@
|
||||
{{- i18n "article.updated" -}}:
|
||||
{{ partial "meta/date.html" . }}
|
||||
<time datetime="{{ . }}">
|
||||
{{- i18n "article.date_updated" (dict "Date" (partial "functions/date.html" .)) | markdownify | emojify -}}
|
||||
</time>
|
||||
{{- /* Trim EOF */ -}}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<time datetime="{{ . }}">
|
||||
{{- . | time.Format (site.Language.Params.dateFormat | default ":date_long") -}}
|
||||
{{- i18n "article.date" (dict "Date" (partial "functions/date.html" .)) | markdownify | emojify -}}
|
||||
</time>
|
||||
{{- /* Trim EOF */ -}}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<span title="{{ i18n "article.reading_time_title" }}">
|
||||
{{- i18n "article.reading_time" .ReadingTime | emojify -}}
|
||||
{{- i18n "article.reading_time" .ReadingTime | markdownify | emojify -}}
|
||||
</span>
|
||||
{{- /* Trim EOF */ -}}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<span>
|
||||
{{- i18n "article.word_count" .WordCount | emojify -}}
|
||||
{{- i18n "article.word_count" .WordCount | markdownify | emojify -}}
|
||||
</span>
|
||||
{{- /* Trim EOF */ -}}
|
||||
|
||||
Reference in New Issue
Block a user