about summary refs log tree commit diff stats
path: root/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/index.html2
-rw-r--r--layouts/partials/hook_head_end.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 18f6806..ad04a63 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -8,7 +8,7 @@
     <ul>
       {{- range first 3 .Site.RegularPages }}
       <li class="h-entry">
-        <a class="u-url p-name" href="{{ .RelPermalink | strings.TrimRight "/" }}">{{ .Title }}</a>
+        <a class="u-url p-name" href="{{ .RelPermalink }}">{{ .Title }}</a>
         <time class="dt-published" datetime="{{ .Date.Format "2006-01-02T15:04:05Z" }}">{{ .Date.Format "Monday, 2 January 2006" }}</time>
       </li>
       {{- end }}
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">