Added read times

This commit is contained in:
Warwick 2024-06-27 15:28:32 +01:00
parent 221fb3039e
commit d30ee41818
2 changed files with 2 additions and 2 deletions

View file

@ -5,7 +5,7 @@
<h1 style="margin-bottom: 1px"> {{.Title}} </h1> <h1 style="margin-bottom: 1px"> {{.Title}} </h1>
{{- partial "taglist.html" . -}} {{- partial "taglist.html" . -}}
<time datetime="{{.Params.date.Format "2006-01-02T15:04:05"}}" class="index-article__date"> <time datetime="{{.Params.date.Format "2006-01-02T15:04:05"}}" class="index-article__date">
{{.Params.date.Format "2 January 2006"}} {{ .Params.date.Format "2 January 2006" }} &middot; {{ .ReadingTime }} mins
</time> </time>
<hr> <hr>
{{ .Content }} {{ .Content }}

View file

@ -16,7 +16,7 @@
<p>{{.Summary | safeHTML}}</p> <p>{{.Summary | safeHTML}}</p>
{{ end }} {{ end }}
<span class="summary__date"> <span class="summary__date">
{{.Params.date.Format "2 January 2006"}} {{ .Params.date.Format "2 January 2006" }} &middot; {{ .ReadingTime }} mins
</span> </span>
</div> </div>
{{ if .Params.thumbnail }} {{ if .Params.thumbnail }}