mirror of
https://github.com/writefreely/writefreely
synced 2024-11-10 11:24:13 +00:00
Conditionally use twitter large summary card format when an image is available.
This commit is contained in:
parent
5204b3b752
commit
ee485e0488
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@
|
|||
<meta name="description" content="{{.Description}}">
|
||||
<meta itemprop="name" content="{{.SiteName}}">
|
||||
<meta itemprop="description" content="{{.Description}}">
|
||||
<meta name="twitter:card" content="summary">
|
||||
<meta name="twitter:card" content="{{if gt (len .Images) 0}}summary_large_image{{else}}summary{{end}}">
|
||||
<meta name="twitter:title" content="{{if .Title}}{{.Title}}{{else}}{{.GenTitle}}{{end}}">
|
||||
<meta name="twitter:description" content="{{.Description}}">
|
||||
{{if gt .Views 1}}<meta name="twitter:label1" value="Views">
|
||||
|
|
Loading…
Reference in a new issue