Commit 0a714f78 authored by Jamie Tanna's avatar Jamie Tanna

Don't incorrectly pluralize reading time

As part of jvt.me#392.
parent 12bf0e1b
......@@ -56,7 +56,11 @@
{{- if eq .Type "posts" -}}
<meta name="twitter:label1" value="Reading time" />
<meta name="twitter:data1" value="{{ .ReadingTime }} mins" />
{{ if eq 1 .ReadingTime }}
<meta name="twitter:data1" value="{{ .ReadingTime }} min" />
{{ else }}
<meta name="twitter:data1" value="{{ .ReadingTime }} mins" />
{{ end }}
{{- end -}}
<meta name="twitter:image" content="{{ $imageUrl }}" />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment