소스 검색

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 3 년 전
부모
커밋
efbc6acf90
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 }}