Add modified time, fix translations, make reading time optional
This commit is contained in:
parent
9d53238842
commit
e0a5a06ce1
@ -17,6 +17,7 @@ pygmentCodeFences = true
|
|||||||
commit = false
|
commit = false
|
||||||
rss = true
|
rss = true
|
||||||
comments = true
|
comments = true
|
||||||
|
readingTime = true
|
||||||
# gcse = "012345678901234567890:abcdefghijk" # Get your code from google.com/cse. Make sure to go to "Look and Feel" and change Layout to "Full Width" and Theme to "Classic"
|
# gcse = "012345678901234567890:abcdefghijk" # Get your code from google.com/cse. Make sure to go to "Look and Feel" and change Layout to "Full Width" and Theme to "Classic"
|
||||||
|
|
||||||
#[[Params.bigimg]]
|
#[[Params.bigimg]]
|
||||||
|
@ -5,6 +5,8 @@
|
|||||||
translation: "2 Jan, 2006 15:04:05"
|
translation: "2 Jan, 2006 15:04:05"
|
||||||
- id: postedOnDate
|
- id: postedOnDate
|
||||||
translation: "Gepostet am {{ .Count }}"
|
translation: "Gepostet am {{ .Count }}"
|
||||||
|
- id: lastModified
|
||||||
|
translation: "(Zuletzt geändert am {{ .Count }})"
|
||||||
- id: translationsLabel
|
- id: translationsLabel
|
||||||
translation: "Andere Sprachen: "
|
translation: "Andere Sprachen: "
|
||||||
- id: translationsSeparator
|
- id: translationsSeparator
|
||||||
@ -22,7 +24,7 @@
|
|||||||
- id: readTime
|
- id: readTime
|
||||||
translation: "minuten"
|
translation: "minuten"
|
||||||
- id: words
|
- id: words
|
||||||
translation: "wörter"
|
translation: "Wörter"
|
||||||
|
|
||||||
|
|
||||||
# 404 page
|
# 404 page
|
||||||
|
@ -5,6 +5,8 @@
|
|||||||
translation: "Jan 2, 2006 15:04:05"
|
translation: "Jan 2, 2006 15:04:05"
|
||||||
- id: postedOnDate
|
- id: postedOnDate
|
||||||
translation: "Posted on {{ .Count }}"
|
translation: "Posted on {{ .Count }}"
|
||||||
|
- id: lastModified
|
||||||
|
translation: "(Last modified on {{ .Count }})"
|
||||||
- id: translationsLabel
|
- id: translationsLabel
|
||||||
translation: "Other languages: "
|
translation: "Other languages: "
|
||||||
- id: translationsSeparator
|
- id: translationsSeparator
|
||||||
|
@ -5,6 +5,8 @@
|
|||||||
translation: "2 Jan, 2006 15:04:05"
|
translation: "2 Jan, 2006 15:04:05"
|
||||||
- id: postedOnDate
|
- id: postedOnDate
|
||||||
translation: "Publicado el {{ .Count }}"
|
translation: "Publicado el {{ .Count }}"
|
||||||
|
- id: lastModified
|
||||||
|
translation: "(Última modificación en {{ .Count }})"
|
||||||
- id: translationsLabel
|
- id: translationsLabel
|
||||||
translation: "Otros idiomas: "
|
translation: "Otros idiomas: "
|
||||||
- id: translationsSeparator
|
- id: translationsSeparator
|
||||||
|
@ -5,6 +5,8 @@
|
|||||||
translation: "2 Jan, 2006 15:04:05"
|
translation: "2 Jan, 2006 15:04:05"
|
||||||
- id: postedOnDate
|
- id: postedOnDate
|
||||||
translation: "Posté le {{ .Count }}"
|
translation: "Posté le {{ .Count }}"
|
||||||
|
- id: lastModified
|
||||||
|
translation: "(Dernière modification le {{ .Count }})"
|
||||||
- id: translationsLabel
|
- id: translationsLabel
|
||||||
translation: "Autres langues: "
|
translation: "Autres langues: "
|
||||||
- id: translationsSeparator
|
- id: translationsSeparator
|
||||||
|
@ -5,6 +5,8 @@
|
|||||||
translation: "2 Jan, 2006 15:04:05"
|
translation: "2 Jan, 2006 15:04:05"
|
||||||
- id: postedOnDate
|
- id: postedOnDate
|
||||||
translation: "{{ .Count }}に投稿"
|
translation: "{{ .Count }}に投稿"
|
||||||
|
- id: lastModified
|
||||||
|
translation: "(最終更新日時{{ .Count }})"
|
||||||
- id: translationsLabel
|
- id: translationsLabel
|
||||||
translation: "翻訳:"
|
translation: "翻訳:"
|
||||||
- id: translationsSeparator
|
- id: translationsSeparator
|
||||||
|
@ -5,6 +5,8 @@
|
|||||||
translation: "2 Jan, 2006 15:04:05"
|
translation: "2 Jan, 2006 15:04:05"
|
||||||
- id: postedOnDate
|
- id: postedOnDate
|
||||||
translation: "Opublikowany {{ .Count }}"
|
translation: "Opublikowany {{ .Count }}"
|
||||||
|
- id: lastModified
|
||||||
|
translation: "(Ostatnia modyfikacja {{ .Count }})"
|
||||||
- id: translationsLabel
|
- id: translationsLabel
|
||||||
translation: "Inne języki: "
|
translation: "Inne języki: "
|
||||||
- id: translationsSeparator
|
- id: translationsSeparator
|
||||||
|
@ -5,6 +5,8 @@
|
|||||||
translation: "2 Jan, 2006 15:04:05"
|
translation: "2 Jan, 2006 15:04:05"
|
||||||
- id: postedOnDate
|
- id: postedOnDate
|
||||||
translation: "Опубликовано {{ .Count }}"
|
translation: "Опубликовано {{ .Count }}"
|
||||||
|
- id: lastModified
|
||||||
|
translation: "(Последнее изменение {{ .Count }})"
|
||||||
- id: translationsLabel
|
- id: translationsLabel
|
||||||
translation: "Другие языки: "
|
translation: "Другие языки: "
|
||||||
- id: translationsSeparator
|
- id: translationsSeparator
|
||||||
|
@ -5,6 +5,8 @@
|
|||||||
translation: "2 Jan, 2006 15:04:05"
|
translation: "2 Jan, 2006 15:04:05"
|
||||||
- id: postedOnDate
|
- id: postedOnDate
|
||||||
translation: "发表于 {{ .Count }}"
|
translation: "发表于 {{ .Count }}"
|
||||||
|
- id: lastModified
|
||||||
|
translation: "(上次修改时间 {{ .Count }})"
|
||||||
- id: translationsLabel
|
- id: translationsLabel
|
||||||
translation: "其它语言: "
|
translation: "其它语言: "
|
||||||
- id: translationsSeparator
|
- id: translationsSeparator
|
||||||
|
@ -1,6 +1,14 @@
|
|||||||
<span class="post-meta">
|
<span class="post-meta">
|
||||||
<i class="fa fa-calendar-o"></i> {{ default (i18n "dateFormat") .Site.Params.dateformat | .Date.Format | i18n "postedOnDate" }}
|
{{ $lastmodstr := default (i18n "dateFormat") .Site.Params.dateformat | .Lastmod.Format }}
|
||||||
| <i class="fa fa-clock-o"></i>{{ i18n "readingTime"}} {{ .ReadingTime }} {{ i18n "readTime" }} ({{ .WordCount }} {{ i18n "words" }})
|
{{ $datestr := default (i18n "dateFormat") .Site.Params.dateformat | .Date.Format }}
|
||||||
|
<i class="fa fa-calendar-o"></i> {{ $datestr | i18n "postedOnDate"}}
|
||||||
|
{{ if ne $datestr $lastmodstr }}
|
||||||
|
{{ $lastmodstr | i18n "lastModified" }}
|
||||||
|
{{ end }}
|
||||||
|
{{ if .Params.readingTime }}
|
||||||
|
|
|
||||||
|
<i class="fa fa-clock-o"></i>{{ i18n "readingTime"}} {{ .ReadingTime }} {{ i18n "readTime" }} ({{ .WordCount }} {{ i18n "words" }})
|
||||||
|
{{ end }}
|
||||||
{{- if .Site.Params.staticman -}}
|
{{- if .Site.Params.staticman -}}
|
||||||
| <i class="fa fa-comment-o"></i>
|
| <i class="fa fa-comment-o"></i>
|
||||||
{{ $slug := replace .URL "/" "" }}
|
{{ $slug := replace .URL "/" "" }}
|
||||||
|
Loading…
Reference in New Issue
Block a user