shithub: hugo

Download patch

ref: e37e3dcc0465b3834cf47c954b99d3587b324319
parent: 6dd57f7a11aed4145dfcacf9f85e020b2dc22941
author: digitalcraftsman <[email protected]>
date: Fri Feb 24 16:36:11 EST 2017

tpl: Add title meta tag to twitter card template

Fixes #3095

--- a/tpl/tplimpl/template_embedded.go
+++ b/tpl/tplimpl/template_embedded.go
@@ -213,6 +213,7 @@
 {{ end }}
 
 <!-- Twitter Card data -->
+<meta name="twitter:text:title" content="{{ .Title }}"/>
 <meta name="twitter:title" content="{{ .Title }}"/>
 <meta name="twitter:description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}"/>
 {{ with .Site.Social.twitter }}<meta name="twitter:site" content="@{{ . }}"/>{{ end }}