mirror of
https://github.com/thomasjsn/hugo-theme-hello-friend.git
synced 2024-11-14 04:15:07 +01:00
Small fixes to reading time feature
This commit is contained in:
parent
f234269325
commit
ca807c2ad6
@ -67,7 +67,7 @@ paginate = 5
|
|||||||
defaultTheme = "dark"
|
defaultTheme = "dark"
|
||||||
# if you set this to 0, only submenu trigger will be visible
|
# if you set this to 0, only submenu trigger will be visible
|
||||||
showMenuItems = 2
|
showMenuItems = 2
|
||||||
# Enable to show reading time in minutes for posts
|
# Show reading time in minutes for posts
|
||||||
showReadingTime = false
|
showReadingTime = false
|
||||||
|
|
||||||
[languages]
|
[languages]
|
||||||
|
@ -8,7 +8,10 @@ paginate = 5
|
|||||||
contentTypeName = "post"
|
contentTypeName = "post"
|
||||||
# "light" or "dark"
|
# "light" or "dark"
|
||||||
defaultTheme = "dark"
|
defaultTheme = "dark"
|
||||||
|
# if you set this to 0, only submenu trigger will be visible
|
||||||
showMenuItems = 2
|
showMenuItems = 2
|
||||||
|
# Enable to show reading time in minutes for posts
|
||||||
|
showReadingTime = false
|
||||||
|
|
||||||
[languages]
|
[languages]
|
||||||
[languages.en]
|
[languages.en]
|
||||||
@ -22,6 +25,7 @@ paginate = 5
|
|||||||
readOtherPosts = "Read other posts"
|
readOtherPosts = "Read other posts"
|
||||||
newerPosts = "Newer posts"
|
newerPosts = "Newer posts"
|
||||||
olderPosts = "Older posts"
|
olderPosts = "Older posts"
|
||||||
|
minuteReadingTime = "min read"
|
||||||
|
|
||||||
[languages.en.params.logo]
|
[languages.en.params.logo]
|
||||||
logoText = "hello friend"
|
logoText = "hello friend"
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
</span>
|
</span>
|
||||||
{{ with .Params.Author }}<span class="post-author">— {{ $.Site.Params.WrittenBy | default "Written by" }} {{ . }}</span>{{ end }}
|
{{ with .Params.Author }}<span class="post-author">— {{ $.Site.Params.WrittenBy | default "Written by" }} {{ . }}</span>{{ end }}
|
||||||
{{ if $.Site.Params.ShowReadingTime }}
|
{{ if $.Site.Params.ShowReadingTime }}
|
||||||
<span class="post-read-time">— ⏰ {{ .ReadingTime }} {{ $.Site.Params.MinuteReadingTime | default "min read" }}</span>
|
<span class="post-read-time">— {{ .ReadingTime }} {{ $.Site.Params.MinuteReadingTime | default "min read" }}</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
{{ with .Params.Author }}<span class="post-author">— {{ $.Site.Params.WrittenBy | default "Written by" }} {{ . }}</span>{{ end }}
|
{{ with .Params.Author }}<span class="post-author">— {{ $.Site.Params.WrittenBy | default "Written by" }} {{ . }}</span>{{ end }}
|
||||||
{{ if $.Site.Params.ShowReadingTime }}
|
{{ if $.Site.Params.ShowReadingTime }}
|
||||||
<span class="post-read-time">— ⏰ {{ .ReadingTime }} {{ $.Site.Params.MinuteReadingTime | default "min read" }}</span>
|
<span class="post-read-time">— {{ .ReadingTime }} {{ $.Site.Params.MinuteReadingTime | default "min read" }}</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user