diff options
author | Michał M. Sapka <michal@sapka.me> | 2023-01-24 16:48:37 +0100 |
---|---|---|
committer | Michał M. Sapka <michal@sapka.me> | 2023-01-24 16:48:37 +0100 |
commit | 6341be70c283927ff83cdc74edcc5c2af762f1a6 (patch) | |
tree | f100b12ec2619b7b60d310e33137052b41845b57 | |
parent | 59dda7f802add8fb6bc6999e0d90accce16bb875 (diff) |
chore: seo
-rw-r--r-- | layouts/_default/baseof.html | 4 | ||||
-rw-r--r-- | layouts/shortcodes/imgproc.html | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index c91cd5a..dcdf2ae 100644 --- 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 index f271fd6..c0559fe 100644 --- 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 }} |