]> git.maquefel.me Git - brevno-suite/hugo/commitdiff
Remove noindex meta tag from alias.html
authorLukáš Zapletal <lukas@zapletalovi.com>
Sat, 30 Aug 2025 17:55:41 +0000 (19:55 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 4 Sep 2025 13:58:23 +0000 (15:58 +0200)
Google does not behave as expected when an alias is used. It does not index the client-side alias page, but on top of that it also does not index the original page.

Google does not require noindex to be present and since alias pages do not have any content, it makes little sense to provide it. Therefore, this patch removes the line completely.

https://developers.google.com/search/docs/crawling-indexing/301-redirects

tpl/tplimpl/embedded/templates/alias.html

index 43d177eaaca6dc13b6fbe3689d518144740b3d65..45ae9b63130eb965b218e62fcc552fa27e50726c 100644 (file)
@@ -3,7 +3,6 @@
   <head>
     <title>{{ .Permalink }}</title>
     <link rel="canonical" href="{{ .Permalink }}">
-    <meta name="robots" content="noindex">
     <meta charset="utf-8">
     <meta http-equiv="refresh" content="0; url={{ .Permalink }}">
   </head>