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

github.com/AmazingRise/hugo-theme-diary.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRise <8315221+AmazingRise@users.noreply.github.com>2021-05-03 05:47:15 +0300
committerGitHub <noreply@github.com>2021-05-03 05:47:15 +0300
commit16509c98e66db4d5ef8d7b768ca58d86af662d32 (patch)
treeeb53d3acaaefa014053babe7b69c63ce0187dfee
parent542495d542d2f8b2a2fe5949d58fee61559debb6 (diff)
parentd73bf1670ca74dcfbb0597891e26e2c0e28242e9 (diff)
Merge pull request #81 from vanhumbeecka/patch-1
Update head.html with optional canonical url
-rw-r--r--layouts/partials/head.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index d1d897d..ed5ddad 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -41,10 +41,14 @@
{{if .Site.Params.manifest}}
<link rel="manifest" href="{{.Site.Params.manifest}}">
{{end}}
+
+{{if .Params.canonicalUrl}}
+<link rel="canonical" href="{{.Params.canonicalUrl}}" />
+{{end}}
+<!-- favicon -->
{{ if .Site.Params.favicon }}
<link rel="icon" href="{{ .Site.Params.favicon | absURL }}">
-<!-- favicon -->
{{ end }}
{{ $styles := resources.Get "scss/journal.scss" | toCSS | minify | fingerprint }}