mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
17 lines
683 B
HTML
17 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 -}}
|
|
|