Compare commits

...

3 Commits

Author SHA1 Message Date
rottenwheel
84ca2cfb5c
Merge pull request #8 from kumitterer/main
Add image tags for social media sharing
2024-07-15 10:51:26 +00:00
Kumi
0bea797447
fix: Use content image as thumbnail if applicable 2024-07-15 12:01:23 +02:00
Kumi
980f06dc80
feat: add image tags for social media sharing 2024-07-15 11:48:17 +02:00

View File

@ -20,8 +20,10 @@
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="{{ .Title }}" />
<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="{{ 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 }}