fix: correct image URLs for weekly Twitter and OG tags
Updated the logic for Twitter and Open Graph image tags to use the correct image URLs for "weekly" section posts. This ensures that the cover images are correctly displayed on social platforms.
This commit is contained in:
parent
b5ca26c611
commit
530627ec8f
1 changed files with 2 additions and 2 deletions
|
@ -20,10 +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 name="twitter:image" content="{{ if (eq .Section "weekly") }}{{ .Permalink }}/cover.png{{ else }}{{ .Site.BaseURL }}/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 }}" />
|
||||
<meta property="og:image" content="{{ if (eq .Section "weekly") }}{{ .Permalink }}/cover.png{{ else }}{{ .Site.BaseURL }}/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 }}
|
||||
|
|
Loading…
Reference in a new issue