mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-29 13:52:03 -05:00
18 lines
683 B
HTML
18 lines
683 B
HTML
|
{{- with $.Param "images" -}}
|
||
|
<meta name="twitter:card" content="summary_large_image"/>
|
||
|
<meta name="twitter:image:src" content="{{ index . 0 | absURL }}"/>
|
||
|
{{ else -}}
|
||
|
<meta name="twitter:card" content="summary"/>
|
||
|
{{- end -}}
|
||
|
<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 -}}
|
||
|
{{ range .Site.Authors }}
|
||
|
{{ with .twitter -}}
|
||
|
<meta name="twitter:creator" content="@{{ . }}"/>
|
||
|
{{ end -}}
|
||
|
{{ end -}}
|
||
|
|