mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-10 00:12:09 +00:00
cffa22e79e
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.
5 lines
224 B
HTML
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 -}}
|