Skip to content

Commit 7cf3c20

Browse files
Add Twitter card metadata (#2279)
1 parent 6b8188e commit 7cf3c20

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

themes/le-2025/layouts/partials/head.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
<meta property="og:title" content="{{ .Title }}" />
1212
<meta property="og:description" content="{{ with .Description }}{{ . | plainify | htmlUnescape }}{{ else }}{{ if .IsPage }}{{ .Summary | plainify | htmlUnescape }}{{ else }}{{ with .Site.Params.description }}{{ . | plainify | htmlUnescape }}{{ end }}{{ end }}{{ end }}" />
1313
<meta property="og:url" content="{{ .Permalink }}" />
14+
<meta name="twitter:card" content="{{ if .Description }}summary{{ else }}summary_large_image{{ end }}" />
15+
<meta name="twitter:title" content="{{ .Title }}" />
16+
<meta name="twitter:description" content="{{ with .Description }}{{ . | plainify | htmlUnescape }}{{ else }}{{ if .IsPage }}{{ .Summary | plainify | htmlUnescape }}{{ else }}{{ with .Site.Params.description }}{{ . | plainify | htmlUnescape }}{{ end }}{{ end }}{{ end }}" />
17+
<meta name="twitter:image" content="{{ "images/LetsEncrypt-SocialShare.png" | absURL }}" />
1418
{{ with site.Home.OutputFormats.Get "RSS" -}}
1519
<link rel="alternate" type="application/rss+xml" title="{{ site.Title }}" href="{{ .RelPermalink }}">
1620
{{- end }}

0 commit comments

Comments
 (0)