twitter_cards.html 611 B

12345678910111213141516
  1. {{- with partial "utils/featured" . }}
  2. <meta name="twitter:card" content="summary_large_image" />
  3. {{- else }}
  4. <meta name="twitter:card" content="summary" />
  5. {{- end }}
  6. <meta name="twitter:title" {{ partial "utils/title" . | printf "content=%q" | safeHTMLAttr }} />
  7. {{- with partial "utils/featured" . }}
  8. <meta property="twitter:image" content="{{ . }}" />
  9. {{- end }}
  10. {{- with partial "utils/description" . }}
  11. <meta name="twitter:description" content="{{ . | plainify | htmlUnescape | chomp }}" />
  12. {{- end }}
  13. {{- with .Site.Params.twitter -}}
  14. <meta name="twitter:site" content="@{{ . }}" />
  15. {{- end }}