estimated time reading at post
This commit is contained in:
parent
83644d8cb3
commit
f6d67ff55b
2 changed files with 8 additions and 0 deletions
|
@ -6,5 +6,6 @@
|
||||||
{{ if and ( .Lastmod ) ( ne .Lastmod .PublishDate) }}
|
{{ if and ( .Lastmod ) ( ne .Lastmod .PublishDate) }}
|
||||||
<time class="single-date" datetime="{{ .Lastmod }}" title="{{ .Lastmod }}">Last updated {{ .Lastmod.UTC.Format "January" }} {{ .Lastmod.UTC.Format "2" | humanize }}, {{ .Lastmod.UTC.Format "2006" }}.</time>
|
<time class="single-date" datetime="{{ .Lastmod }}" title="{{ .Lastmod }}">Last updated {{ .Lastmod.UTC.Format "January" }} {{ .Lastmod.UTC.Format "2" | humanize }}, {{ .Lastmod.UTC.Format "2006" }}.</time>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
<a class="post-reading-time">{{ printf "Estimated reading time: %d minutes" .ReadingTime }}</a>
|
||||||
</div>
|
</div>
|
||||||
<hr/>
|
<hr/>
|
||||||
|
|
7
layouts/posts/single.html
Normal file
7
layouts/posts/single.html
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{{ partial "header.html" . }}
|
||||||
|
|
||||||
|
{{ partial "single-header.html" . }}
|
||||||
|
|
||||||
|
{{ .Content }}
|
||||||
|
|
||||||
|
{{ partial "footer.html" . }}
|
Loading…
Reference in a new issue