summaryrefslogtreecommitdiffstats
path: root/tpl
diff options
context:
space:
mode:
authordigitalcraftsman <digitalcraftsman@protonmail.com>2017-02-24 21:36:11 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-02-25 09:53:25 +0100
commite37e3dcc0465b3834cf47c954b99d3587b324319 (patch)
tree1da2337c7dd886f619bf2c8cbb13898a7ef94942 /tpl
parent6dd57f7a11aed4145dfcacf9f85e020b2dc22941 (diff)
tpl: Add title meta tag to twitter card template
Fixes #3095
Diffstat (limited to 'tpl')
-rw-r--r--tpl/tplimpl/template_embedded.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/tpl/tplimpl/template_embedded.go b/tpl/tplimpl/template_embedded.go
index 74bf0a4df..77561d42b 100644
--- 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 }}