summary refs log tree commit diff stats
path: root/layouts/partials
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/hook_head_end.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/hook_head_end.html b/layouts/partials/hook_head_end.html
index 13e0ec6..0f89f7d 100644
--- a/layouts/partials/hook_head_end.html
+++ b/layouts/partials/hook_head_end.html
@@ -1,2 +1,2 @@
-<link href="{{ if .IsPage }}{{ .Permalink | replaceRE "/$" "" }}{{ else }}{{ .Permalink }}{{ end }}" rel="canonical">
+<link href="{{ if .IsPage }}{{ .Permalink | strings.TrimRight "/" }}{{ else }}{{ .Permalink }}{{ end }}" rel="canonical">
 <meta name="googlebot" content="noindex">