parent
8f2d583ab6
commit
80205a7117
4 changed files with 7 additions and 3 deletions
|
@ -265,6 +265,10 @@ params:
|
||||||
# options doc: https://github.com/sampotts/plyr#options
|
# options doc: https://github.com/sampotts/plyr#options
|
||||||
# fullscreen: true
|
# fullscreen: true
|
||||||
|
|
||||||
|
# Enable reading time support in post cards and in post pages
|
||||||
|
readingTime:
|
||||||
|
enable: true
|
||||||
|
|
||||||
|
|
||||||
# Provide footer configuration.
|
# Provide footer configuration.
|
||||||
footer:
|
footer:
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
<div class="author-profile ml-auto align-self-lg-center">
|
<div class="author-profile ml-auto align-self-lg-center">
|
||||||
<img class="rounded-circle" src='{{ partial "helpers/get-author-image.html" . }}' alt="Author Image">
|
<img class="rounded-circle" src='{{ partial "helpers/get-author-image.html" . }}' alt="Author Image">
|
||||||
<h5 class="author-name">{{ partial "helpers/get-author-name.html" . }}</h5>
|
<h5 class="author-name">{{ partial "helpers/get-author-name.html" . }}</h5>
|
||||||
<p>{{ .Page.Date | time.Format ":date_full" }}</p>
|
<p>{{ .Page.Date | time.Format ":date_full" }}{{ if site.Params.features.readingTime }} | {{ .ReadingTime }} minute{{ if (ne .ReadingTime 1) }}s{{ end }}{{ end }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="title">
|
<div class="title">
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<span class="float-left">{{ .Date.Format "January 2, 2006" }}</span>
|
<span class="float-left">{{ .Date.Format "January 2, 2006" }}{{ if site.Params.features.readingTime }} | {{ .ReadingTime }} minute{{ if (ne .ReadingTime 1) }}s{{ end }}{{ end }}</span>
|
||||||
<a
|
<a
|
||||||
href="{{ .RelPermalink | relLangURL }}"
|
href="{{ .RelPermalink | relLangURL }}"
|
||||||
class="float-right btn btn-outline-info btn-sm"
|
class="float-right btn btn-outline-info btn-sm"
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<span class="float-left">{{ .Date.Format "January 2, 2006" }}</span>
|
<span class="float-left">{{ .Date.Format "January 2, 2006" }}{{ if site.Params.features.readingTime }} | {{ .ReadingTime }} minute{{ if (ne .ReadingTime 1) }}s{{ end }}{{ end }}</span>
|
||||||
<a href="{{ .RelPermalink }}" title="{{ i18n "read" }}" class="float-right btn btn-outline-info btn-sm">{{ i18n "read" }}</a>
|
<a href="{{ .RelPermalink }}" title="{{ i18n "read" }}" class="float-right btn btn-outline-info btn-sm">{{ i18n "read" }}</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue