Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gkmngrgn/hugo-alageek-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGökmen Görgen <gkmngrgn@gmail.com>2022-10-02 16:14:59 +0300
committerGitHub <noreply@github.com>2022-10-02 16:14:59 +0300
commit90e6ee8bea88d64d8d67658e0f1186b0daf8dbc9 (patch)
tree63269c13a034bca027e8f38975898ee766542bc6
parentd4a6d02a977b0228017879fcc5dc3c70330a3981 (diff)
parentdcf05af55c46cf0ed0bd7a3eafd51dd78ce9418c (diff)
Merge pull request #25 from histrio/main
Give an option to provide custom canonical url
-rw-r--r--layouts/partials/head.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 1023921..1f70ed0 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -56,7 +56,7 @@
{{ end }}
- <link rel="canonical" href="{{ .Permalink }}" />
+ <link rel="canonical" href="{{ .Params.canonical | default .Permalink }}" />
{{ if .Site.Params.faviconfile }}
<link rel="shortcut icon" href="{{ .Site.Params.faviconfile | absURL }}" />