commit 6341be70c283927ff83cdc74edcc5c2af762f1a6
parent 59dda7f802add8fb6bc6999e0d90accce16bb875
Author: MichaĆ M. Sapka <michal@sapka.me>
Date: Tue, 24 Jan 2023 16:48:37 +0100
chore: seo
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
@@ -17,7 +17,7 @@
<meta property="og:title" content="{{ .Page.Title }}" />
<meta property="og:type" content="website" />
- <meta property="og:url" content="{{ .Page.Permalink }}" />
+ <meta property="og:url" content="{{ .Permalink }}" />
{{- $imageUrl := default "logo.png" .Params.image }}
{{- $image := resources.Get $imageUrl }}
<meta property="og:image" content="{{ $image.Permalink }}" />
@@ -28,7 +28,7 @@
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:description" content="{{ .Page.Summary }}" />
- <link rel="canonical" href="{{ .Site.BaseURL }}">
+ <link rel="canonical" href="{{ .Permalink }}">
<link rel='alternate' type='application/rss+xml' title="{{ .Site.Title }} RSS" href='/index.xml'>
<meta name="robots" content="index, follow">
{{ if isset .Params "tags" }}<meta name="keywords" content="{{ with .Params.tags }}{{ delimit . ", " }}{{ end }}">{{end}}
diff --git a/layouts/shortcodes/imgproc.html b/layouts/shortcodes/imgproc.html
@@ -15,7 +15,7 @@
{{ errorf "Invalid image processing command: Must be one of Crop, Fit, Fill or Resize."}}
{{ end }}
<figure>
- <img class="centered" src="{{ $img.RelPermalink }}" width="{{ $img.Width }}" height="{{ $img.Height }}">
+ <img class="centered" alt="{{ $caption }}" src="{{ $img.RelPermalink }}" width="{{ $img.Width }}" height="{{ $img.Height }}">
<figcaption>
{{ $caption }}