From d89edf3e1b31baed524e5866b6d58fdc7dcad5f6 Mon Sep 17 00:00:00 2001
From: tobinjt <johntobin@johntobin.ie>
Date: Tue, 20 Nov 2018 18:19:10 +0000
Subject: [PATCH] Add trailing slash to remove redirects. (#112)

---
 layouts/partials/taxonomy/tags.html       |    2 +-
 CONTRIBUTORS.md                           |    1 +
 layouts/partials/taxonomy/categories.html |    2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md
index 20b8241..2bee414 100644
--- a/CONTRIBUTORS.md
+++ b/CONTRIBUTORS.md
@@ -24,3 +24,4 @@
 - [Joseph Ting](https://github.com/josephting)
 - [Abner Campanha](https://github.com/abnerpc)
 - [Martin Kiesel](https://github.com/Kyslik)
+- [John Tobin](https://www.johntobin.ie/)
diff --git a/layouts/partials/taxonomy/categories.html b/layouts/partials/taxonomy/categories.html
index 8be7d71..1dfa641 100644
--- a/layouts/partials/taxonomy/categories.html
+++ b/layouts/partials/taxonomy/categories.html
@@ -4,6 +4,6 @@
     {{- if gt $index 0 }}
       <span class="separator">•</span>
     {{- end }}
-    <a href="{{ ( print "categories/" ( . | urlize ) ) | relLangURL }}">{{ . }}</a>
+    <a href="{{ ( printf "categories/%s/" ( . | urlize ) ) | relLangURL }}">{{ . }}</a>
   {{- end -}}
 </div>
diff --git a/layouts/partials/taxonomy/tags.html b/layouts/partials/taxonomy/tags.html
index 332fb98..b691b4d 100644
--- a/layouts/partials/taxonomy/tags.html
+++ b/layouts/partials/taxonomy/tags.html
@@ -4,6 +4,6 @@
     {{- if gt $index 0 }}
       <span class="separator">•</span>
     {{- end }}
-    <a href="{{ ( print "tags/" ( . | urlize ) ) | relLangURL }}">{{ . }}</a>
+    <a href="{{ ( printf "tags/%s/" ( . | urlize ) ) | relLangURL }}">{{ . }}</a>
   {{- end -}}
 </div>

--
Gitblit v1.10.0