From c1dcebb98cdec23cd7b92d99ecfde4ee193710f5 Mon Sep 17 00:00:00 2001 From: askiiart Date: Tue, 13 Aug 2024 11:31:12 -0500 Subject: [PATCH] added a sitemap and updated the index cuz apparently i forgot to add a couple things? also updated the error pages while i'm at it --- blog/feed.xml | 2 +- error/202.html | 2 +- error/204.html | 2 +- error/300.html | 2 +- error/301.html | 2 +- error/401.html | 2 +- error/402.html | 2 +- error/403.html | 2 +- error/404.html | 2 +- error/406.html | 2 +- error/410.html | 2 +- error/413.html | 2 +- error/417.html | 2 +- error/418.html | 2 +- error/423.html | 2 +- error/425.html | 2 +- error/429.html | 2 +- error/451.html | 2 +- error/502.html | 2 +- error/504.html | 2 +- error/508.html | 2 +- feed.xml | 2 +- generate-sitemap.sh | 30 ++++++++++++++++++++++++++++++ index.html | 5 +++++ index.md | 2 ++ run.sh | 1 + sitemap.xml | 14 ++++++++++++++ til/feed.xml | 2 +- 28 files changed, 75 insertions(+), 23 deletions(-) create mode 100755 generate-sitemap.sh create mode 100644 sitemap.xml diff --git a/blog/feed.xml b/blog/feed.xml index e467f45..7f08346 100644 --- a/blog/feed.xml +++ b/blog/feed.xml @@ -5,7 +5,7 @@ askiiart.net blog The feed for askiiart.net but just the blog, I guess https://askiiart.net/blog/ - Wed, 03 Apr 2024 00:51:41 +0000 + Tue, 13 Aug 2024 16:30:59 +0000 300 https://askiiart.net/til/300.html diff --git a/error/202.html b/error/202.html index 3d297fb..26fa591 100644 --- a/error/202.html +++ b/error/202.html @@ -2,6 +2,6 @@ 202 You In My Heart

202 You In My Heart

-
nginx/1.25.3
+
nginx/1.27.0
diff --git a/error/204.html b/error/204.html index 95215ef..0c85c91 100644 --- a/error/204.html +++ b/error/204.html @@ -2,6 +2,6 @@ 204 Head Empty No Thoughts

204 Head Empty No Thoughts

-
nginx/1.25.3
+
nginx/1.27.0
diff --git a/error/300.html b/error/300.html index 9625760..8fa11dc 100644 --- a/error/300.html +++ b/error/300.html @@ -2,6 +2,6 @@ 300 Poll

300 Poll


57% Yes, 43% No
(300 Multiple Choices is the actual error code? Geddit?)
-
nginx/1.25.3
+
nginx/1.27.0
diff --git a/error/301.html b/error/301.html index 0139e86..f20a425 100644 --- a/error/301.html +++ b/error/301.html @@ -2,6 +2,6 @@ 301 Your Princess Is In Another Castle

301 Your Princess Is In Another Castle

-
nginx/1.25.3
+
nginx/1.27.0
diff --git a/error/401.html b/error/401.html index a303d28..354d820 100644 --- a/error/401.html +++ b/error/401.html @@ -2,6 +2,6 @@ 401 This Is Against TOS You've Been Reported

401 This Is Against TOS You've Been Reported

-
nginx/1.25.3
+
nginx/1.27.0
diff --git a/error/402.html b/error/402.html index 24491a6..1b6f940 100644 --- a/error/402.html +++ b/error/402.html @@ -2,6 +2,6 @@ 402 Come Back When You're a Little MMMMMM Richer

402 Come Back When You're a Little MMMMMM Richer

-
nginx/1.25.3
+
nginx/1.27.0
diff --git a/error/403.html b/error/403.html index 3883133..95a9648 100644 --- a/error/403.html +++ b/error/403.html @@ -2,6 +2,6 @@ 403 You Shall Not Pass

403 You Shall Not Pass


gandalf saying you looped infinitely -
nginx/1.25.3
+
nginx/1.27.0
diff --git a/error/404.html b/error/404.html index 208095d..022a970 100644 --- a/error/404.html +++ b/error/404.html @@ -2,6 +2,6 @@ 404 You Made A Typo In The URL, Didn't You?

404 You Made A Typo In The URL, Didn't You?


boykisser -
nginx/1.25.3
+
nginx/1.27.0
diff --git a/error/406.html b/error/406.html index eb73672..9f82f32 100644 --- a/error/406.html +++ b/error/406.html @@ -2,6 +2,6 @@ 406 I Can't Believe You've Done This

406 I Can't Believe You've Done This

-
nginx/1.25.3
+
nginx/1.27.0
diff --git a/error/410.html b/error/410.html index e65df1f..5138057 100644 --- a/error/410.html +++ b/error/410.html @@ -2,6 +2,6 @@ 410 Your Father

410 Your Father

-
nginx/1.25.3
+
nginx/1.27.0
diff --git a/error/413.html b/error/413.html index 486443d..1bff3bb 100644 --- a/error/413.html +++ b/error/413.html @@ -2,6 +2,6 @@ 413 Me After a Night With Your Mother

413 Me After a Night With Your Mother

-
nginx/1.25.3
+
nginx/1.27.0
diff --git a/error/417.html b/error/417.html index b511a2b..4bbca62 100644 --- a/error/417.html +++ b/error/417.html @@ -2,6 +2,6 @@ 417 Me After 20-something Years With My Mother

417 Me After 20-something Years With My Mother

-
nginx/1.25.3
+
nginx/1.27.0
diff --git a/error/418.html b/error/418.html index 5b6e5d5..b945b2e 100644 --- a/error/418.html +++ b/error/418.html @@ -2,6 +2,6 @@ 418 I'm a Teapot

418 I'm a Teapot

-
nginx/1.25.3
+
nginx/1.27.0
diff --git a/error/423.html b/error/423.html index e81948b..fbbcdaf 100644 --- a/error/423.html +++ b/error/423.html @@ -2,6 +2,6 @@ 423 Fine Then, Keep Your Secrets

423 Fine Then, Keep Your Secrets

-
nginx/1.25.3
+
nginx/1.27.0
diff --git a/error/425.html b/error/425.html index 1342013..70ad493 100644 --- a/error/425.html +++ b/error/425.html @@ -2,6 +2,6 @@ 425 Sorry This Never Happens With Other Women

425 Sorry This Never Happens With Other Women

-
nginx/1.25.3
+
nginx/1.27.0
diff --git a/error/429.html b/error/429.html index bf70b17..70dc559 100644 --- a/error/429.html +++ b/error/429.html @@ -2,6 +2,6 @@ 429 i'm scared stop asking me q.q

429 i'm scared stop asking me q.q

-
nginx/1.25.3
+
nginx/1.27.0
diff --git a/error/451.html b/error/451.html index 41a5d87..b11e17d 100644 --- a/error/451.html +++ b/error/451.html @@ -2,6 +2,6 @@ 451 Oi, You Got a Loicense For That Mate?

451 Oi, You Got a Loicense For That Mate?

-
nginx/1.25.3
+
nginx/1.27.0
diff --git a/error/502.html b/error/502.html index 9370aff..40f0ebf 100644 --- a/error/502.html +++ b/error/502.html @@ -2,6 +2,6 @@ 502 Forgive Me Father For My Gateway Has Sinned

502 Forgive Me Father For My Gateway Has Sinned

-
nginx/1.25.3
+
nginx/1.27.0
diff --git a/error/504.html b/error/504.html index 838d15f..4d6777e 100644 --- a/error/504.html +++ b/error/504.html @@ -2,6 +2,6 @@ 504 Gateway died on the way back from its home planet

504 Gateway died on the way back from its home planet

-
nginx/1.25.3
+
nginx/1.27.0
diff --git a/error/508.html b/error/508.html index ea4b681..a3de147 100644 --- a/error/508.html +++ b/error/508.html @@ -2,6 +2,6 @@ 508 508 508 508 508 508 508 508 508 508 508 508 508 508 508

508 508 508 508 508 508 508 508 508 508 508 508 508 508 508

-
nginx/1.25.3
+
nginx/1.27.0
diff --git a/feed.xml b/feed.xml index b133230..3be36fd 100644 --- a/feed.xml +++ b/feed.xml @@ -5,7 +5,7 @@ askiiart.net The feed for askiiart.net, I guess https://askiiart.net - Wed, 03 Apr 2024 00:51:41 +0000 + Tue, 13 Aug 2024 16:30:59 +0000 300 https://askiiart.net/blog/300.html diff --git a/generate-sitemap.sh b/generate-sitemap.sh new file mode 100755 index 0000000..2b281a4 --- /dev/null +++ b/generate-sitemap.sh @@ -0,0 +1,30 @@ +#!/usr/bin/env bash + +### Stolen from TCCD-CompSci-and-Coding-Club/website on Codeberg (also written by me) + +# Taken from here and modified: https://www.lostsaloon.com/technology/how-to-create-an-xml-sitemap-using-wget-and-shell-script/ +# (https://web.archive.org/web/20231202193251/https://www.lostsaloon.com/technology/how-to-create-an-xml-sitemap-using-wget-and-shell-script/) (https://archive.ph/qtdMP) +sitedomain=https://tccdcode.club/ +dir=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd) +wget --spider --recursive --level=inf --output-file=$dir/linklist.txt $sitedomain +# greps for the relevant lines, gets the URLs, gets only the lines for $sitedomain, and sorts them +# wget's output changed, so this line had to be updated +# also, not sure why it ends up working, since there's a leading space in the lines after `awk` runs, but it works soooo i'mnot gonna mess with it +grep "Adding URL:" $dir/linklist.txt | awk -F 'Adding URL:' '{print $2}' | grep "$sitedomain" | sort -u >$dir/sortedurls.txt +header='' +echo $header >sitemap.xml +while read p; do + case "$p" in + */ | *.html | *.htm) + echo ''$p'' >>sitemap.xml + ;; + *) ;; + esac +done <$dir/sortedurls.txt +echo "" >>sitemap.xml +rm $dir/linklist.txt +rm $dir/sortedurls.txt diff --git a/index.html b/index.html index b977fe3..eb1bb33 100755 --- a/index.html +++ b/index.html @@ -80,6 +80,8 @@ Choices
  • New PGP key, and new directory - I switch to a new PGP key
  • +
  • Foooooonts! - There's + fonts now! and uh yeah, fonts.
  • TIL
  • Other/Meta

    diff --git a/index.md b/index.md index 5d42618..e03f77f 100755 --- a/index.md +++ b/index.md @@ -36,9 +36,11 @@ I'm a hobby programmer, and co-founder and vice president of the [TCCD CompSci a - [Marlin Boot Animations](/blog/marlin-boot-animations.html) - Make your Marlin boot screen animated! Includes animation formatting documentation. - [300](/blog/300.html) - Figuring out 300 Multiple Choices - [New PGP key, and new directory](/blog/new-pgp-key.html) - I switch to a new PGP key + - [Foooooonts!](/blog/foooooonts.html) - There's fonts now! and uh yeah, fonts. - [TIL](/til/) - Just little tidbits I learn, inspired by [Simon Willison's TIL](https://til.simonwillison.net/), which was itself inspired by [jbranchaud/til](https://github.com/jbranchaud/til). - [Using JSON with docker compose](/til/using-json-with-docker-compose.html) - Exactly what it sounds like. ([markdown](/til/using-json-with-docker-compose.md)) + - [Akkoma in Docker](/til/akkoma-in-docker.html) - uh I figured out how to do Akkoma in Docker cuz it doesn't quite match the docs sometimes. ## Other/Meta diff --git a/run.sh b/run.sh index 698e26a..ef8615f 100755 --- a/run.sh +++ b/run.sh @@ -5,3 +5,4 @@ SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd) cd $SCRIPT_DIR ./md2html.sh ./generate-rss.sh +./generate-sitemap.sh \ No newline at end of file diff --git a/sitemap.xml b/sitemap.xml new file mode 100644 index 0000000..5a27a84 --- /dev/null +++ b/sitemap.xml @@ -0,0 +1,14 @@ + +https://tccdcode.club/ +https://tccdcode.club/calendar.html +https://tccdcode.club/flyer.html +https://tccdcode.club/index.html +https://tccdcode.club/phone-directory.html +https://tccdcode.club/profiles/ +https://tccdcode.club/profiles/event-director.html +https://tccdcode.club/profiles/president.html +https://tccdcode.club/profiles/senate.html +https://tccdcode.club/profiles/social-director.html +https://tccdcode.club/profiles/vice-president.html +https://tccdcode.club/resources.html + diff --git a/til/feed.xml b/til/feed.xml index 5088c14..027644f 100644 --- a/til/feed.xml +++ b/til/feed.xml @@ -5,7 +5,7 @@ askiiart.net TIL The feed for askiiart.net but just TIL, I guess https://askiiart.net/til/ - Wed, 03 Apr 2024 00:51:41 +0000 + Tue, 13 Aug 2024 16:30:59 +0000 Akkoma in Docker https://askiiart.net/til/akkoma-in-docker.html