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"
|
||||
# if you set this to 0, only submenu trigger will be visible
|
||||
showMenuItems = 2
|
||||
# Enable to show reading time in minutes for posts
|
||||
# Show reading time in minutes for posts
|
||||
showReadingTime = false
|
||||
|
||||
[languages]
|
||||
|
@ -8,7 +8,10 @@ paginate = 5
|
||||
contentTypeName = "post"
|
||||
# "light" or "dark"
|
||||
defaultTheme = "dark"
|
||||
# if you set this to 0, only submenu trigger will be visible
|
||||
showMenuItems = 2
|
||||
# Enable to show reading time in minutes for posts
|
||||
showReadingTime = false
|
||||
|
||||
[languages]
|
||||
[languages.en]
|
||||
@ -22,6 +25,7 @@ paginate = 5
|
||||
readOtherPosts = "Read other posts"
|
||||
newerPosts = "Newer posts"
|
||||
olderPosts = "Older posts"
|
||||
minuteReadingTime = "min read"
|
||||
|
||||
[languages.en.params.logo]
|
||||
logoText = "hello friend"
|
||||
|
@ -13,7 +13,7 @@
|
||||
</span>
|
||||
{{ with .Params.Author }}<span class="post-author">— {{ $.Site.Params.WrittenBy | default "Written by" }} {{ . }}</span>{{ end }}
|
||||
{{ 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 }}
|
||||
</div>
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
{{ end }}
|
||||
{{ with .Params.Author }}<span class="post-author">— {{ $.Site.Params.WrittenBy | default "Written by" }} {{ . }}</span>{{ end }}
|
||||
{{ 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 }}
|
||||
</div>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user