From ec5b2944e379f9c81e6a91f721f3da03ff470958 Mon Sep 17 00:00:00 2001
From: =?utf8?q?Duje=20Mihanovi=C4=87?= <duje.mihanovic@skole.hr>
Date: Sun, 6 Aug 2023 20:58:27 +0200
Subject: [PATCH] New post (Site is now on Gitea), enable git info

---
 content/posts/first-post/index.md           |  3 +++
 content/posts/site-is-now-on-gitea/index.md | 16 ++++++++++++++++
 hugo.toml                                   |  1 +
 layouts/_default/baseof.html                |  1 +
 4 files changed, 21 insertions(+)
 create mode 100644 content/posts/site-is-now-on-gitea/index.md

diff --git a/content/posts/first-post/index.md b/content/posts/first-post/index.md
index a522cc3..7129a67 100644
--- a/content/posts/first-post/index.md
+++ b/content/posts/first-post/index.md
@@ -10,3 +10,6 @@ I'm still experimenting with Hugo, so don't be surprised if the site layout
 changes dramatically in a short period of time. I put the source code for this
 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)
diff --git a/content/posts/site-is-now-on-gitea/index.md b/content/posts/site-is-now-on-gitea/index.md
new file mode 100644
index 0000000..4f61f40
--- /dev/null
+++ b/content/posts/site-is-now-on-gitea/index.md
@@ -0,0 +1,16 @@
+---
+title: "Site is now on Gitea"
+date: 2023-08-06T19:27:40+02:00
+---
+Even though the site is still nothing special,
+I have published its source code on
+[my new Gitea instance](https://git.dujemihanovic.xyz/). To save you a click
+or two, the repository itself can be found
+[here](https://git.dujemihanovic.xyz/duje/dujemihanovic.xyz).
+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
+patches sent with `git send-email`, a great tutorial on how to use it can be
+found [here](https://git-send-email.io).
+
+For convenience and to emphasize this, I have also added a "This site is free
+software" link to the footer, right under the RSS button.
diff --git a/hugo.toml b/hugo.toml
index 9770b55..a194329 100644
--- a/hugo.toml
+++ b/hugo.toml
@@ -1,5 +1,6 @@
 baseURL = 'https://dujemihanovic.xyz/'
 languageCode = 'en-us'
 title = "Duje Mihanović's Site"
+enableGitInfo = true
 [author]
   name = 'Duje Mihanović'
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 78033ff..2248357 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -27,6 +27,7 @@
 			<p></p>
 			<!-- See comment above. -->
 			<a href="{{ $.Site.BaseURL }}posts/index.xml"><img src="{{ $image.RelPermalink }}" width="32px" height="32px" alt="Link to RSS feed"></a>
+			<p>This site is <a href="https://git.dujemihanovic.xyz/duje/dujemihanovic.xyz">free software</a>
 		</footer>
 	</body>
 </html>
-- 
2.39.5