1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-12-27 10:52:09 +00:00
seirdy.one/layouts/partials/wordcount.html
Rohan Kumar cffa22e79e
Internal: re-org templates a bit
Split up some verbose and repetitive templates to use nested templates.
Cache some templates that don't need to be re-built every time.

Reading time: switch "a" to "an" when followed by the number "8".

Improve whitespace alignment a bit.
2022-04-27 08:44:13 -07:00

5 lines
224 B
HTML

<span itemprop="wordCount">{{ .WordCount }}</span> words
{{- with .ReadingTime }},
a{{ if hasPrefix (string .) "8" }}n
{{- end }}
<span itemprop="timeRequired" content="PT{{ . }}M">{{ . }} minute</span> read{{ end -}}