From ca59ededc6c1afc572fac79b46e1bd1536cd7056 Mon Sep 17 00:00:00 2001
From: Jeffrey Phillips Freeman <the@jeffreyfreeman.me>
Date: Fri, 13 Oct 2023 23:59:47 -0400
Subject: [PATCH] Fixed broken links in article footer

---
 CHANGELOG.md                         | 4 +++-
 layouts/partials/article_footer.html | 6 +++---
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 82435232e..e006e7bbc 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,9 +2,11 @@
 
 ## 1.1.1
 
-* Removed content folder and moved out the Fedipage site into a seperate repo.
+* Removed content folder and moved out the Fedipage site into a separate repo.
     This should make it easier for people who use this site to update from the
     upstream here without needing to worry about conflicts due to content.
+* Fixed links at the bottom of posts that direct people to the gitlab page for
+    the post.
 
 ## 1.1.0
 
diff --git a/layouts/partials/article_footer.html b/layouts/partials/article_footer.html
index fad1ff3a0..db34c82af 100644
--- a/layouts/partials/article_footer.html
+++ b/layouts/partials/article_footer.html
@@ -10,9 +10,9 @@
 </div>
 {{ end }}
 <div class="widgets source">
-<a href="{{ site.Params.siteRepoUrl }}/tree/master/content/{{.File.LogicalName}}" rel="nofollow">View Source</a>
+<a href="{{ site.Params.siteRepoUrl }}/tree/master/content/{{ .Section }}/{{.File.LogicalName}}" rel="nofollow">View Source</a>
 |
-<a href="{{ site.Params.siteRepoUrl }}/edit/master/content/{{.File.LogicalName}}" rel="nofollow">Make a correction</a>
+<a href="{{ site.Params.siteRepoUrl }}/edit/master/content/{{ .Section }}/{{.File.LogicalName}}" rel="nofollow">Make a correction</a>
 |
-<a href="{{ site.Params.siteRepoUrl }}/commits/master/content/{{.File.LogicalName}}" rel="nofollow">Correction history</a>
+<a href="{{ site.Params.siteRepoUrl }}/commits/master/content/{{ .Section }}/{{.File.LogicalName}}" rel="nofollow">Correction history</a>
 </div>
-- 
GitLab