Compare commits

...

3 commits

Author SHA1 Message Date
86de31fcec
feat: improve image handling on weekly issue covers
Updated image handling to use Hugo's image processing for resizing cover images, which enhances performance by serving optimized images. Replaces direct image URL with resource-based URL.
2024-08-07 08:39:04 +02:00
4e42eff681
fix: update Twitter and Open Graph image
Changed the image from PNG to JPG in Twitter and Open Graph meta tags.
2024-08-06 12:06:30 +02:00
a24ac412e2
fix(meta): correct meta description and add Twitter/OG descriptions
Updated the meta description to use site parameters instead of page parameters for consistency. Added site-wide description to Twitter and Open Graph meta tags to enhance SEO and social media sharing. This ensures a uniform description across various platforms.
2024-08-06 11:56:11 +02:00
2 changed files with 10 additions and 4 deletions

View file

@ -10,7 +10,11 @@
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
<time class="by-line">{{ .Date.Format .Site.Params.dateFormat }}</time>
<a href="{{ .RelPermalink }}">
<img class="img-lead" src="{{ .RelPermalink }}cover.png" alt="Revuo Monero Weekly #{{ .Params.issuenumber }} cover">
{{ $image := .Resources.Get "cover.png" }}
{{ $image := $image.Resize "650x" }}
{{ with $image }}
<img class="img-lead" src="{{ $image.RelPermalink }}" alt="Revuo Monero Weekly #{{ .Params.issuenumber }} cover">
{{ end }}
</a>
{{ $sTitle := split .Params.title ":" }}

View file

@ -4,7 +4,7 @@
content="width=device-width, initial-scale=1.0, maximum-scale=1"
/>
<title>{{ .Title }}</title>
<meta name="description" content="{{ .Description }}" />
<meta name="description" content="{{ .Site.Params.Description }}" />
<meta name="keywords" content="{{ .Keywords }}" />
<link rel="icon" type="image/png" sizes="32x32" href="/img/revuo-icon_1.png" />
@ -20,10 +20,12 @@
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="{{ .Title }}" />
<meta name="twitter:image" content="{{ if (eq .Section "weekly") }}{{ .Permalink }}/cover.png{{ else }}{{ .Site.BaseURL }}/img/revuo-monero.png{{ end }}" />
<meta name="twitter:image" content="{{ if (eq .Section "weekly") }}{{ .Permalink }}/cover.png{{ else }}{{ .Site.BaseURL }}/img/revuo-monero.jpg{{ end }}" />
<meta name="twitter:description" content="{{ .Site.Params.Description }}" />
<meta property="og:site_name" content="{{ .Site.Title }}" />
<meta property="og:title" content="{{ .Title }}" />
<meta property="og:image" content="{{ if (eq .Section "weekly") }}{{ .Permalink }}/cover.png{{ else }}{{ .Site.BaseURL }}/img/revuo-monero.png{{ end }}" />
<meta property="og:image" content="{{ if (eq .Section "weekly") }}{{ .Permalink }}/cover.png{{ else }}{{ .Site.BaseURL }}/img/revuo-monero.jpg{{ end }}" />
<meta property="og:description" content="{{ .Site.Params.Description }}" />
{{ with .OutputFormats.Get "rss" -}}
{{ printf `<link rel=%q type=%q href=%q title=%q>` .Rel .MediaType.Type .Permalink site.Title | safeHTML }}