<metaname="twitter:image"content="{{ index . 0 | absURL }}"/>
{{ else -}}
<metaname="twitter:card"content="summary"/>
{{- end -}}
{{- end -}}
{{- end }}
<metaname="twitter:title"content="{{ .Title }}"/>
<metaname="twitter:description"content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end -}}"/>