fix: Use content image as thumbnail if applicable

This commit is contained in:
Kumi 2024-07-15 12:01:23 +02:00
parent 980f06dc80
commit 0bea797447
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -20,10 +20,10 @@
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="{{ .Title }}" />
<meta name="twitter:image" content="/img/revuo-monero.png">
<meta name="twitter:image" content="{{ if and (eq .Section "posts") (.Params.image) }}/{{ .Params.image }}{{ else }}/img/revuo-monero.png{{ end }}" />
<meta property="og:site_name" content="{{ .Site.Title }}" />
<meta property="og:title" content="{{ .Title }}" />
<meta property="og:image" content="/img/revuo-monero.png">
<meta property="og:image" content="{{ if and (eq .Section "posts") (.Params.image) }}/{{ .Params.image }}{{ else }}/img/revuo-monero.png{{ end }}" />
{{ with .OutputFormats.Get "rss" -}}
{{ printf `<link rel=%q type=%q href=%q title=%q>` .Rel .MediaType.Type .Permalink site.Title | safeHTML }}