Commit fc7fd975 authored by Jamie Tanna's avatar Jamie Tanna

Only show reading time sharing metadata on posts

As part of jvt.me#373, it's better to only show reading time on the
posts.

Relates to jvt.me#401.
parent dfdb6745
......@@ -53,8 +53,11 @@
<meta name="twitter:card" content="summary" />
<meta name="twitter:title" content="{{ .Title }} &middot; {{ .Site.Title }}" />
<meta name="twitter:description" content="{{ $description }}" />
{{- if eq .Type "posts" -}}
<meta name="twitter:label1" value="Reading time" />
<meta name="twitter:data1" value="{{ .ReadingTime }} mins" />
{{- end -}}
<meta name="twitter:image" content="{{ $imageUrl }}" />
<!-- CSS -->
......
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