Fix reading time appear on all files
This commit is contained in:
parent
d115caca07
commit
b0226b86e4
1 changed files with 5 additions and 2 deletions
|
@ -1,11 +1,14 @@
|
|||
{{ $image := (.Resources.ByType "image").GetMatch "images/*featured*" }}
|
||||
|
||||
<div class="content-inner full-width header">
|
||||
<h1 class="single-title">{{ .Title }}</h1>
|
||||
<p class="single-description">{{ .Description | markdownify }}</p>
|
||||
{{ 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 }}
|
||||
|
||||
|
||||
{{ if and (in (printf "/%s/" .File.Dir) "/posts/") (ne .File.BaseFileName "_index") }}
|
||||
<a class="post-reading-time">{{ printf "Estimated reading time: %d minutes" .ReadingTime }}</a>
|
||||
{{ end }}
|
||||
|
||||
</div>
|
||||
<hr/>
|
||||
|
|
Loading…
Reference in a new issue