From d91097391152c48004eddfb0a436fdbffd0e6b98 Mon Sep 17 00:00:00 2001
From: =?utf8?q?Duje=20Mihanovi=C4=87?= <duje.mihanovic@skole.hr>
Date: Sun, 3 Sep 2023 19:39:55 +0200
Subject: [PATCH] Add trailing slashes to all intra-site links

This should fix old browsers not automatically redirecting when given
the HTTP 308 code.
---
 content/posts/dropping-gitea/index.md       | 2 +-
 content/posts/first-post/index.md           | 2 +-
 content/posts/site-is-now-on-gitea/index.md | 2 +-
 layouts/partials/nav.html                   | 4 ++--
 4 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/content/posts/dropping-gitea/index.md b/content/posts/dropping-gitea/index.md
index 39013db..1ea9085 100644
--- a/content/posts/dropping-gitea/index.md
+++ b/content/posts/dropping-gitea/index.md
@@ -28,4 +28,4 @@ with lots of outside contribution as that's when it would become truly useful.
 Until then, I always accept patches sent with the venerable
 [git send-email](https://git-send-email.io).
 
-If the new site breaks down in any way, please [let me know](/contact).
+If the new site breaks down in any way, please [let me know](/contact/).
diff --git a/content/posts/first-post/index.md b/content/posts/first-post/index.md
index 7129a67..5479484 100644
--- a/content/posts/first-post/index.md
+++ b/content/posts/first-post/index.md
@@ -12,4 +12,4 @@ site under a (as of writing, local) Git repository which I do intend to make
 public if and when the blog becomes something relatively serious.
 
 EDIT: The source code is now public: [Site is now on
-Gitea](/posts/site-is-now-on-gitea)
+Gitea](/posts/site-is-now-on-gitea/)
diff --git a/content/posts/site-is-now-on-gitea/index.md b/content/posts/site-is-now-on-gitea/index.md
index 6a4a56c..1fac103 100644
--- a/content/posts/site-is-now-on-gitea/index.md
+++ b/content/posts/site-is-now-on-gitea/index.md
@@ -8,7 +8,7 @@ I have published its source code on
 or two, the repository itself can be found
 [here](https://git.dujemihanovic.xyz/?p=dujemihanovic.xyz.git;a=summary).
 If you have any suggestions as to how to improve the site, feel free to
-[contact me](/contact). If you are willing to directly contribute, I also accept
+[contact me](/contact/). If you are willing to directly contribute, I also accept
 patches sent with `git send-email`, a great tutorial on how to use it can be
 found [here](https://git-send-email.io).
 
diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html
index a5f33ab..35b6ec9 100644
--- a/layouts/partials/nav.html
+++ b/layouts/partials/nav.html
@@ -1,7 +1,7 @@
 <nav>
 	<ul>
 		<li><a href="/">Home</a></li>
-		<li><a href="/posts">Blog</a></li>
-		<li><a href="/contact">Contact</a></li>
+		<li><a href="/posts/">Blog</a></li>
+		<li><a href="/contact/">Contact</a></li>
 	</ul>
 </nav>
-- 
2.39.5