From a4f297d9995366e7d286cde5eabd543ad72e16b3 Mon Sep 17 00:00:00 2001 From: KitsuneSolar Date: Mon, 30 Oct 2023 13:19:30 +0000 Subject: [PATCH] 2023-10-30 13:19:30 --- layouts/partials/head.html | 12 +++++++++++- layouts/robots.txt | 3 --- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 871fcd2..2d3f319 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -56,7 +56,17 @@ - +{{ $canonical := (.Permalink) }} +{{ with ($.Paginator) }} + {{ $canonical = ((.URL) | absURL) }} + {{ if (.HasPrev) }} + + {{ end }} + {{ if (.HasNext) }} + + {{ end }} +{{ end }} + diff --git a/layouts/robots.txt b/layouts/robots.txt index 6a83d64..41c3c45 100644 --- a/layouts/robots.txt +++ b/layouts/robots.txt @@ -5,9 +5,6 @@ Disallow: /*/manifest.json Disallow: /*/opensearch.xml Disallow: /*/search.json Disallow: /*/turbo.json -Disallow: /*/authors/ -Disallow: /*/categories/ Disallow: /*/footer/ -Disallow: /*/tags/ Sitemap: {{ ("sitemap.xml" | absURL) }}