Commit cc687eae authored by Jamie Tanna's avatar Jamie Tanna

Merge branch 'defect/plural-reading-time' into 'fork'

Don't incorrectly pluralize reading time

See merge request !51
parents 12bf0e1b 0a714f78
......@@ -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