diff options
author | digitalcraftsman <digitalcraftsman@protonmail.com> | 2017-02-24 21:36:11 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-02-25 09:53:25 +0100 |
commit | e37e3dcc0465b3834cf47c954b99d3587b324319 (patch) | |
tree | 1da2337c7dd886f619bf2c8cbb13898a7ef94942 /tpl | |
parent | 6dd57f7a11aed4145dfcacf9f85e020b2dc22941 (diff) |
tpl: Add title meta tag to twitter card template
Fixes #3095
Diffstat (limited to 'tpl')
-rw-r--r-- | tpl/tplimpl/template_embedded.go | 1 |
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 }} |