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

github.com/yoshiharuyamashita/blackburn.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoshiharu Yamashita <yoshiharuyamashita@users.noreply.github.com>2019-10-03 10:40:36 +0300
committerGitHub <noreply@github.com>2019-10-03 10:40:36 +0300
commit558fba4523c4b79cdb74ca95fdcd9d7282cc72e0 (patch)
treec1ea58e069e08a456e360d2f96e7986811303d9b
parent1ef96b0ef5b5d841eac7c8e0bdc13c06e32b1218 (diff)
parent984d3cb2fe931b4a79a534082160ab26c426ab7e (diff)
Merge pull request #88 from AdamHepner/add_canonical
Add canonical header link from content preamble
-rw-r--r--layouts/partials/head.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 9e1e4ce..7ee282a 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -6,6 +6,10 @@
<title>{{ if .IsHome }}{{ .Title }}{{ else }}{{ .Title }} &middot; {{ .Site.Title }}{{ end }}</title>
+ {{ if .Params.canonical }}
+ <link rel="canonical" href="{{ .Params.canonical }}">
+ {{ end }}
+
<!-- CSS -->
{{ $purecss := "https://cdnjs.cloudflare.com/ajax/libs/pure/1.0.0/" }}
<link rel="stylesheet" href="{{ $purecss }}pure-min.css">