Commit b84bec2f authored by Eugen Rochko's avatar Eugen Rochko

Fix OpenGraph thumbnails

parent e3bfe848
Pipeline #49 passed with stages
in 0 seconds
......@@ -12,7 +12,15 @@
<meta name="twitter:card" content="summary_large_image" />
{{ if isset .Params "hero" }}
<meta name="og:image" content="{{ .Params.hero }}" />
<meta name="twitter:image" content="{{ .Params.hero }}" />
{{ else }}
{{ $hero := .Page.Resources.GetMatch "hero" }}
{{ if $hero }}
<meta name="og:image" content="{{ $hero.Permalink }}" />
<meta name="twitter:image" content="{{ $hero.Permalink }}" />
{{ end }}
{{ end }}
<meta name="twitter:site" content="@MastodonProject" />
......
......@@ -5,6 +5,7 @@
<title>Official Mastodon Blog</title>
<meta property="og:title" content="Mastodon (Blog)" />
<meta property="og:type" content="blog" />
<meta property="og:description" content="Official blog of Mastodon, the decentralized social network of the future. Keep up with new developments!" />
<meta name="twitter:card" content="summary_large_image" />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment