estimated time reading at post

This commit is contained in:
night0721 2023-11-07 22:27:15 +00:00
parent 83644d8cb3
commit f6d67ff55b
2 changed files with 8 additions and 0 deletions

View file

@ -6,5 +6,6 @@
{{ 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>
{{ end }}
<a class="post-reading-time">{{ printf "Estimated reading time: %d minutes" .ReadingTime }}</a>
</div>
<hr/>

View file

@ -0,0 +1,7 @@
{{ partial "header.html" . }}
{{ partial "single-header.html" . }}
{{ .Content }}
{{ partial "footer.html" . }}