diff options
author | Yoshiharu Yamashita <yoshiharuyamashita@users.noreply.github.com> | 2019-10-03 10:40:36 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-03 10:40:36 +0300 |
commit | 558fba4523c4b79cdb74ca95fdcd9d7282cc72e0 (patch) | |
tree | c1ea58e069e08a456e360d2f96e7986811303d9b | |
parent | 1ef96b0ef5b5d841eac7c8e0bdc13c06e32b1218 (diff) | |
parent | 984d3cb2fe931b4a79a534082160ab26c426ab7e (diff) |
Merge pull request #88 from AdamHepner/add_canonical
Add canonical header link from content preamble
-rw-r--r-- | layouts/partials/head.html | 4 |
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 }} · {{ .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"> |