mirror of
https://github.com/Colin-XKL/Colinx-Blog.git
synced 2026-01-12 18:51:28 +08:00
feat: rel canonical link using absolute url
This commit is contained in:
@@ -21,6 +21,9 @@ showReadingTime = false
|
|||||||
# leave empty to disable, enter display text to enable
|
# leave empty to disable, enter display text to enable
|
||||||
lastModDisplay = "最后修改"
|
lastModDisplay = "最后修改"
|
||||||
rssFullText = true
|
rssFullText = true
|
||||||
|
# custom params
|
||||||
|
# The values nested under params: will populate the .Site.Params variable for use in templates
|
||||||
|
canonicalRelLinkBase = 'https://blog.colinx.one/'
|
||||||
|
|
||||||
[languages]
|
[languages]
|
||||||
[languages.en]
|
[languages.en]
|
||||||
@@ -67,7 +70,7 @@ rssFullText = true
|
|||||||
[languages.zh-cn]
|
[languages.zh-cn]
|
||||||
title = "Colinx Blog"
|
title = "Colinx Blog"
|
||||||
subtitle = "Colin的个人博客"
|
subtitle = "Colin的个人博客"
|
||||||
keywords = "Colin,个人博客"
|
keywords = "Colin,个人博客,技术,后端,Linux,前端"
|
||||||
copyright = ""
|
copyright = ""
|
||||||
menuMore = "显示更多"
|
menuMore = "显示更多"
|
||||||
writtenBy = "作者"
|
writtenBy = "作者"
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
content="{{ with .Params.Keywords }}{{ delimit . ", " }}{{ else }}{{ $.Site.Params.Keywords }}{{ end }}"
|
content="{{ with .Params.Keywords }}{{ delimit . ", " }}{{ else }}{{ $.Site.Params.Keywords }}{{ end }}"
|
||||||
/>
|
/>
|
||||||
<meta name="robots" content="noodp" />
|
<meta name="robots" content="noodp" />
|
||||||
<link rel="canonical" href="{{ .Permalink }}" />
|
<link rel="canonical" href="{{ path.Join $.Site.Params.canonicalRelLinkBase .Permalink }}" />
|
||||||
|
|
||||||
<!-- head custom -->
|
<!-- head custom -->
|
||||||
{{- partial "prepended_head.html" . }}
|
{{- partial "prepended_head.html" . }}
|
||||||
|
|||||||
Reference in New Issue
Block a user