Explorar el Código

Canonical URLs should be absolute not relative (#66)

https://developers.google.com/search/docs/advanced/crawling/consolidate-duplicate-urls#rel-canonical-link-method
Sidharth R hace 3 años
padre
commit
efbc6acf90
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      layouts/partials/head.html

+ 1 - 1
layouts/partials/head.html

@@ -4,7 +4,7 @@
   <meta http-equiv="X-UA-Compatible" content="IE=edge">
 
   {{ hugo.Generator }}
-  <link rel="canonical" href="{{ .RelPermalink }}">
+  <link rel="canonical" href="{{ .Permalink }}" />
 
   {{ if .IsHome }}
     {{ with .Site.Params.homeMetaContent }}