hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit e37e3dcc0465b3834cf47c954b99d3587b324319
parent 6dd57f7a11aed4145dfcacf9f85e020b2dc22941
Author: digitalcraftsman <digitalcraftsman@protonmail.com>
Date:   Fri, 24 Feb 2017 21:36:11 +0100

tpl: Add title meta tag to twitter card template

Fixes #3095

Diffstat:
Mtpl/tplimpl/template_embedded.go | 1+
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/tpl/tplimpl/template_embedded.go b/tpl/tplimpl/template_embedded.go
@@ -213,6 +213,7 @@ func (t *GoHTMLTemplate) EmbedTemplates() {
 {{ 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 }}