mirror of https://github.com/jpanther/congo.git
commit
27ccae6f7d
|
@ -30,6 +30,7 @@ colorScheme = "congo"
|
||||||
showPagination = true
|
showPagination = true
|
||||||
showReadingTime = true
|
showReadingTime = true
|
||||||
# sharingLinks = ["facebook", "twitter", "pinterest", "reddit", "linkedin", "email"]
|
# sharingLinks = ["facebook", "twitter", "pinterest", "reddit", "linkedin", "email"]
|
||||||
|
showWordCount = true
|
||||||
|
|
||||||
[list]
|
[list]
|
||||||
showBreadcrumbs = false
|
showBreadcrumbs = false
|
||||||
|
|
|
@ -6,6 +6,9 @@ article:
|
||||||
one: "{{ .Count }} min"
|
one: "{{ .Count }} min"
|
||||||
other: "{{ .Count }} min"
|
other: "{{ .Count }} min"
|
||||||
reading_time_title: "Lesezeit"
|
reading_time_title: "Lesezeit"
|
||||||
|
# word_count:
|
||||||
|
# one: "{{ .Count }} word"
|
||||||
|
# other: "{{ .Count }} words"
|
||||||
|
|
||||||
author:
|
author:
|
||||||
byline_title: "Autor"
|
byline_title: "Autor"
|
||||||
|
|
|
@ -6,6 +6,9 @@ article:
|
||||||
one: "{{ .Count }} min"
|
one: "{{ .Count }} min"
|
||||||
other: "{{ .Count }} mins"
|
other: "{{ .Count }} mins"
|
||||||
reading_time_title: "Reading time"
|
reading_time_title: "Reading time"
|
||||||
|
word_count:
|
||||||
|
one: "{{ .Count }} word"
|
||||||
|
other: "{{ .Count }} words"
|
||||||
|
|
||||||
author:
|
author:
|
||||||
byline_title: "Author"
|
byline_title: "Author"
|
||||||
|
|
|
@ -6,6 +6,9 @@ article:
|
||||||
one: "{{ .Count }} min"
|
one: "{{ .Count }} min"
|
||||||
other: "{{ .Count }} mins"
|
other: "{{ .Count }} mins"
|
||||||
reading_time_title: "Tiempo de lectura"
|
reading_time_title: "Tiempo de lectura"
|
||||||
|
# word_count:
|
||||||
|
# one: "{{ .Count }} word"
|
||||||
|
# other: "{{ .Count }} words"
|
||||||
|
|
||||||
author:
|
author:
|
||||||
byline_title: "Autor"
|
byline_title: "Autor"
|
||||||
|
|
|
@ -6,6 +6,9 @@ article:
|
||||||
one: "{{ .Count }} min"
|
one: "{{ .Count }} min"
|
||||||
other: "{{ .Count }} mins"
|
other: "{{ .Count }} mins"
|
||||||
reading_time_title: "Temps de lecture"
|
reading_time_title: "Temps de lecture"
|
||||||
|
# word_count:
|
||||||
|
# one: "{{ .Count }} word"
|
||||||
|
# other: "{{ .Count }} words"
|
||||||
|
|
||||||
author:
|
author:
|
||||||
byline_title: "Auteur"
|
byline_title: "Auteur"
|
||||||
|
|
|
@ -6,6 +6,9 @@ article:
|
||||||
one: "{{ .Count }} minuto"
|
one: "{{ .Count }} minuto"
|
||||||
other: "{{ .Count }} minutos"
|
other: "{{ .Count }} minutos"
|
||||||
reading_time_title: "Tempo de leitura"
|
reading_time_title: "Tempo de leitura"
|
||||||
|
# word_count:
|
||||||
|
# one: "{{ .Count }} word"
|
||||||
|
# other: "{{ .Count }} words"
|
||||||
|
|
||||||
author:
|
author:
|
||||||
byline_title: "Autor"
|
byline_title: "Autor"
|
||||||
|
|
|
@ -5,6 +5,9 @@ article:
|
||||||
reading_time:
|
reading_time:
|
||||||
other: "{{ .Count }} 分钟"
|
other: "{{ .Count }} 分钟"
|
||||||
reading_time_title: "预计阅读"
|
reading_time_title: "预计阅读"
|
||||||
|
word_count:
|
||||||
|
one: "{{ .Count }} 字"
|
||||||
|
other: "{{ .Count }} 字"
|
||||||
|
|
||||||
author:
|
author:
|
||||||
byline_title: "作者"
|
byline_title: "作者"
|
||||||
|
|
|
@ -16,6 +16,10 @@
|
||||||
{{ $meta.Add "partials" (slice (partial "meta/date.html" .)) }}
|
{{ $meta.Add "partials" (slice (partial "meta/date.html" .)) }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
{{ if and (.Params.showWordCount | default (.Site.Params.article.showWordCount | default true)) (ne .WordCount 0) }}
|
||||||
|
{{ $meta.Add "partials" (slice (partial "meta/word-count.html" .)) }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{ if and (.Params.showReadingTime | default (.Site.Params.article.showReadingTime | default true)) (ne .ReadingTime 0) }}
|
{{ if and (.Params.showReadingTime | default (.Site.Params.article.showReadingTime | default true)) (ne .ReadingTime 0) }}
|
||||||
{{ $meta.Add "partials" (slice (partial "meta/reading-time.html" .)) }}
|
{{ $meta.Add "partials" (slice (partial "meta/reading-time.html" .)) }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
<span>
|
||||||
|
{{- i18n "article.word_count" .WordCount | emojify -}}
|
||||||
|
</span>
|
||||||
|
{{- /* Trim EOF */ -}}
|
||||||
|
|
Loading…
Reference in New Issue