diff options
author | Alan Pearce | 2017-06-23 13:22:08 +0200 |
---|---|---|
committer | Alan Pearce | 2017-06-23 13:22:08 +0200 |
commit | 57a032d9f3665033484471fd1e355e3b3caff641 (patch) | |
tree | c7b622c9a9ab5ab7ac8d9092543b615d1a6550fd /layouts/partials/head.html | |
parent | 80ecb4689b15c3260d83f57dafb81bd73bd32942 (diff) | |
parent | 987cab567c5fc9bed00bf11b8693b44d40564e5e (diff) | |
download | hyde-57a032d9f3665033484471fd1e355e3b3caff641.tar.lz hyde-57a032d9f3665033484471fd1e355e3b3caff641.tar.zst hyde-57a032d9f3665033484471fd1e355e3b3caff641.zip |
Merge remote-tracking branch 'alanpearce/master'
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r-- | layouts/partials/head.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 4c79ead..59304c2 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -14,5 +14,5 @@ <link rel="stylesheet" href="/css/syntax.css"> <link rel="stylesheet" href="/css/hyde.css"> <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}"> - <link href="{{ .Permalink }}" rel="canonical"> + <link href="{{ if .IsPage }}{{ .Permalink | replaceRE "/$" "" }}{{ else }}{{ .Permalink }}{{ end }}" rel="canonical"> </head> |