From 079b946fd685a9e16520f14cd3e2c1aa6cb7ecd2 Mon Sep 17 00:00:00 2001
From: Evan G
Date: Thu, 13 Jun 2024 13:50:33 -0500
Subject: [PATCH 1/4] Change Footer logic to account for .Site.Copyright and
other methods (#24)
* Use License Variable & Format + Footer minimal
* Update Footer Logic
---
layouts/partials/footer.html | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 0a7a6c5..cf46ab0 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -1,3 +1,12 @@
-Privacy Policy | Cookie Policy | Terms of Use
-© 2023 {{ $.Site.Params.author }}
+{{ if .Site.Params.footer.minimal | not }}
+
+ Privacy Policy | Cookie Policy | Terms of Use
+
+{{ end }}
+
+{{ with .Site.Copyright }}
+{{ now.Format "2006" }} © {{ . | markdownify }}
+{{ else }}
+{{ now.Format "2006" }} © {{ .Site.Params.author }} {{ with .Site.Params.License }} - {{ . | markdownify }} {{ end }}
+{{ end }}
Mastodon | Contact Me | RSS Feed
From d6c39b9b51e935ee7f02f97bb6f0d42d72dba0f2 Mon Sep 17 00:00:00 2001
From: benjaminhollon
Date: Tue, 18 Jun 2024 21:47:27 +0000
Subject: [PATCH 2/4] Update README to reflect move to Codeberg
---
README.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index b7800f6..e9ea59a 100644
--- a/README.md
+++ b/README.md
@@ -12,13 +12,13 @@ Want to check out a demo? (coming soon)
To add this theme to an existing Hugo site, start by adding this repo as a submodule in the site's themes folder.
-`git submodule add https://github.com/cjtheham/hugo-theme-readable themes/readable`
+`git submodule add https://codeberg.org/Freedom-to-Write/hugo-theme-readable themes/readable`
Then, update your config file to be using the new theme. For example, if you are using config.toml, the line should become:
`theme = 'readable'`
-If you don't have an existing site, feel free to use the provided [starter template](https://github.com/cjtheham/hugo-starter-readable) to quickly get your website online.
+If you don't have an existing site, feel free to use the provided [starter template](https://codeberg.org/cjtheham/hugo-starter-readable) to quickly get your website online.
For more information on starting a Hugo website and using custom themes, refer to the [Hugo documentation](https://gohugo.io/documentation/).
From 5365462844891d880eb10850bc79309b82fe8832 Mon Sep 17 00:00:00 2001
From: "Evan G."
Date: Tue, 18 Jun 2024 19:20:28 -0500
Subject: [PATCH 3/4] Fix Starter template link
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index e9ea59a..e174471 100644
--- a/README.md
+++ b/README.md
@@ -18,7 +18,7 @@ Then, update your config file to be using the new theme. For example, if you are
`theme = 'readable'`
-If you don't have an existing site, feel free to use the provided [starter template](https://codeberg.org/cjtheham/hugo-starter-readable) to quickly get your website online.
+If you don't have an existing site, feel free to use the provided [starter template](https://codeberg.org/Freedom-to-Write/hugo-starter-readable) to quickly get your website online.
For more information on starting a Hugo website and using custom themes, refer to the [Hugo documentation](https://gohugo.io/documentation/).
From 7fbbdd1c38bb80efcf98d04a41bcfcf53838ec2a Mon Sep 17 00:00:00 2001
From: "Evan G."
Date: Wed, 19 Jun 2024 14:01:47 -0500
Subject: [PATCH 4/4] Remove all the links that mention github in theme.toml +
Fix Documentation
---
docs/development.md | 4 ++--
theme.toml | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/docs/development.md b/docs/development.md
index 4a71c4f..eda393c 100644
--- a/docs/development.md
+++ b/docs/development.md
@@ -2,7 +2,7 @@
## Adding your fork as an additional Git remote to a hugo-theme-readable Git submodule
-The easiest way to test your changes is with an existing Hugo website that already uses this theme. You can use your own or checkout the [starter template](https://github.com/cjtheham/hugo-starter-readable).
+The easiest way to test your changes is with an existing Hugo website that already uses this theme. You can use your own or checkout the [starter template](https://codeberg.org/Freedom-to-Write/hugo-starter-readable).
The following steps show you how to add your fork as an additional Git remote to the checked out Git submodule.
@@ -16,7 +16,7 @@ git submodule update
cd themes/readable/
# Add your fork as the remote 'fork'.
-git remote add fork git@github.com:/hugo-theme-readable.git
+git remote add fork git@codeberg.org:/hugo-theme-readable.git
# Create a new branch.
git checkout -b my-change
diff --git a/theme.toml b/theme.toml
index c9ce5fe..a971b5c 100644
--- a/theme.toml
+++ b/theme.toml
@@ -3,13 +3,13 @@
name = "Readable"
license = "Unlicense"
-licenselink = "https://github.com/cjtheham/hugo-theme-readable/blob/main/LICENSE"
+licenselink = "https://codeberg.org/Freedom-to-Write/hugo-theme-readable/src/branch/main/LICENSE"
description = "A theme using Freedom to Write's Readable.css"
-homepage = "https://github.com/cjtheham/hugo-theme-readable"
+homepage = "https://codeberg.org/Freedom-to-Write/hugo-theme-readable"
tags = []
features = []
min_version = "0.41.0"
[author]
name = "RogueFoam"
- homepage = ""
\ No newline at end of file
+ homepage = ""