From d89edf3e1b31baed524e5866b6d58fdc7dcad5f6 Mon Sep 17 00:00:00 2001 From: tobinjt Date: Tue, 20 Nov 2018 18:19:10 +0000 Subject: [PATCH] Add trailing slash to remove redirects. (#112) * Add trailing slash to remove redirects. When you request /tags/foo, the web server will redirect you to /tags/foo/ so the browser needs to make two requests. Add the trailing slash in the link so that only one request is needed. * Add trailing slash to remove redirects. * Improve how trailing slash is added. Co-Authored-By: tobinjt * Improve how trailing slash is added. Co-Authored-By: tobinjt * Add John Tobin. --- CONTRIBUTORS.md | 1 + layouts/partials/taxonomy/categories.html | 2 +- layouts/partials/taxonomy/tags.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 }} {{- end }} - {{ . }} + {{ . }} {{- end -}} 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 }} {{- end }} - {{ . }} + {{ . }} {{- end -}}