From 890b34bcc1a6b4073d1e512b1386634f7bc5ea52 Mon Sep 17 00:00:00 2001 From: "Adam T. Carpenter" Date: Wed, 21 Apr 2021 22:57:39 -0400 Subject: unified posts dir, until I can figure out makefile sub-subdirs. makefile auto-generates index --- Makefile | 19 +- .../2020-11-24-i-like-hyper-more-than-actix.html | 23 ++ index.html | 153 ++------- posts/2019-04-06-why-have-a-website-in-2019.html | 170 ++++++++++ ...-07-how-to-start-and-drive-a-hudson-hornet.html | 322 ++++++++++++++++++ ...est-way-to-transfer-gopro-files-with-linux.html | 127 +++++++ posts/2019-07-04-yabs-yet-another-bad-shop.html | 235 +++++++++++++ ...-21-dancing-the-shag-and-the-new-lion-king.html | 85 +++++ .../2019-07-28-i-finally-found-a-drink-i-like.html | 86 +++++ posts/2019-08-11-marrying-my-best-friend.html | 68 ++++ posts/2019-08-30-keep-right-except-to-pass.html | 108 ++++++ ...9-28-my-preferred-method-for-data-recovery.html | 276 +++++++++++++++ posts/2020-04-10-the-obligatory-covid-19-post.html | 103 ++++++ posts/2020-04-10-wedding-photos-are-here.html | 96 ++++++ posts/2020-07-11-why-computer-science-at-w-m.html | 249 ++++++++++++++ .../2020-07-26-now-this-is-a-minimal-install.html | 101 ++++++ posts/2020-11-30-titanics-last-signals.html | 73 ++++ posts/2020-12-01-the-guides.html | 117 +++++++ posts/2020-12-04-aoc-2020-day-1-in-cbm-basic.html | 231 +++++++++++++ ...int-planning-from-a-certified-scrum-master.html | 203 +++++++++++ ...why-does-everyone-use-adobe-acrobat-reader.html | 144 ++++++++ posts/2020-12-29-antivirus-software-is-a-hack.html | 197 +++++++++++ posts/2021-01-15-adam-s-2020-reading-list.html | 196 +++++++++++ ...n-zfs-a-zpool-of-mirror-vdevs-the-easy-way.html | 375 +++++++++++++++++++++ ...021-01-28-undefined-javasript-is-undefined.html | 163 +++++++++ ...-a-bamf-and-proof-that-organists-are-metal.html | 129 +++++++ ...w-to-automate-certbot-renewal-with-haproxy.html | 256 ++++++++++++++ ...20-how-to-make-your-website-boring-and-why.html | 214 ++++++++++++ .../2019-04-06-why-have-a-website-in-2019.html | 170 ---------- ...why-does-everyone-use-adobe-acrobat-reader.html | 144 -------- .../2020-12-29-antivirus-software-is-a-hack.html | 197 ----------- ...0-how-to-make-your-website-boring-and-why-.html | 214 ------------ .../2020-11-30-titanic's-last-signals.html | 73 ---- ...-21-dancing-the-shag-and-the-new-lion-king.html | 85 ----- .../2019-07-28-i-finally-found-a-drink-i-like.html | 86 ----- posts/life/2019-08-11-marrying-my-best-friend.html | 68 ---- .../2020-04-10-the-obligatory-covid-19-post.html | 103 ------ posts/life/2020-04-10-wedding-photos-are-here.html | 96 ------ .../life/2021-01-15-adam-s-2020-reading-list.html | 196 ----------- ...a-bamf-and-proof-that-organists-are-metal-.html | 129 ------- .../2020-07-11-why-computer-science-at-w-m.html | 249 -------------- .../2020-11-24-i-like-hyper-more-than-actix.html | 23 -- posts/programming/2020-12-01-the-guides.html | 117 ------- .../2020-12-04-aoc-2020-day-1-in-cbm-basic.html | 231 ------------- ...int-planning-from-a-certified-scrum-master.html | 203 ----------- ...21-01-28-undefined-javasript-is-undefined-.html | 163 --------- ...est-way-to-transfer-gopro-files-with-linux.html | 127 ------- ...9-28-my-preferred-method-for-data-recovery.html | 276 --------------- .../2020-07-26-now-this-is-a-minimal-install.html | 101 ------ ...n-zfs-a-zpool-of-mirror-vdevs-the-easy-way.html | 375 --------------------- ...w-to-automate-certbot-renewal-with-haproxy.html | 256 -------------- ...-07-how-to-start-and-drive-a-hudson-hornet.html | 322 ------------------ .../2019-07-04-yabs-yet-another-bad-shop.html | 235 ------------- .../2019-08-30-keep-right-except-to-pass.html | 108 ------ templates/index_foot.html | 4 + templates/index_head.html | 68 ++++ 56 files changed, 4459 insertions(+), 4479 deletions(-) create mode 100644 drafts/2020-11-24-i-like-hyper-more-than-actix.html create mode 100644 posts/2019-04-06-why-have-a-website-in-2019.html create mode 100644 posts/2019-06-07-how-to-start-and-drive-a-hudson-hornet.html create mode 100644 posts/2019-07-04-the-best-way-to-transfer-gopro-files-with-linux.html create mode 100644 posts/2019-07-04-yabs-yet-another-bad-shop.html create mode 100644 posts/2019-07-21-dancing-the-shag-and-the-new-lion-king.html create mode 100644 posts/2019-07-28-i-finally-found-a-drink-i-like.html create mode 100644 posts/2019-08-11-marrying-my-best-friend.html create mode 100644 posts/2019-08-30-keep-right-except-to-pass.html create mode 100644 posts/2019-09-28-my-preferred-method-for-data-recovery.html create mode 100644 posts/2020-04-10-the-obligatory-covid-19-post.html create mode 100644 posts/2020-04-10-wedding-photos-are-here.html create mode 100644 posts/2020-07-11-why-computer-science-at-w-m.html create mode 100644 posts/2020-07-26-now-this-is-a-minimal-install.html create mode 100644 posts/2020-11-30-titanics-last-signals.html create mode 100644 posts/2020-12-01-the-guides.html create mode 100644 posts/2020-12-04-aoc-2020-day-1-in-cbm-basic.html create mode 100644 posts/2020-12-08-useful-sprint-planning-from-a-certified-scrum-master.html create mode 100644 posts/2020-12-22-why-does-everyone-use-adobe-acrobat-reader.html create mode 100644 posts/2020-12-29-antivirus-software-is-a-hack.html create mode 100644 posts/2021-01-15-adam-s-2020-reading-list.html create mode 100644 posts/2021-01-15-root-on-zfs-a-zpool-of-mirror-vdevs-the-easy-way.html create mode 100644 posts/2021-01-28-undefined-javasript-is-undefined.html create mode 100644 posts/2021-02-12-louis-vierne-is-a-bamf-and-proof-that-organists-are-metal.html create mode 100644 posts/2021-03-19-how-to-automate-certbot-renewal-with-haproxy.html create mode 100644 posts/2021-04-20-how-to-make-your-website-boring-and-why.html delete mode 100644 posts/computing/2019-04-06-why-have-a-website-in-2019.html delete mode 100644 posts/computing/2020-12-22-why-does-everyone-use-adobe-acrobat-reader.html delete mode 100644 posts/computing/2020-12-29-antivirus-software-is-a-hack.html delete mode 100644 posts/computing/2021-04-20-how-to-make-your-website-boring-and-why-.html delete mode 100644 posts/interesting/2020-11-30-titanic's-last-signals.html delete mode 100644 posts/life/2019-07-21-dancing-the-shag-and-the-new-lion-king.html delete mode 100644 posts/life/2019-07-28-i-finally-found-a-drink-i-like.html delete mode 100644 posts/life/2019-08-11-marrying-my-best-friend.html delete mode 100644 posts/life/2020-04-10-the-obligatory-covid-19-post.html delete mode 100644 posts/life/2020-04-10-wedding-photos-are-here.html delete mode 100644 posts/life/2021-01-15-adam-s-2020-reading-list.html delete mode 100644 posts/life/2021-02-12-louis-vierne-is-a-bamf-and-proof-that-organists-are-metal-.html delete mode 100644 posts/programming/2020-07-11-why-computer-science-at-w-m.html delete mode 100644 posts/programming/2020-11-24-i-like-hyper-more-than-actix.html delete mode 100644 posts/programming/2020-12-01-the-guides.html delete mode 100644 posts/programming/2020-12-04-aoc-2020-day-1-in-cbm-basic.html delete mode 100644 posts/programming/2020-12-08-useful-sprint-planning-from-a-certified-scrum-master.html delete mode 100644 posts/programming/2021-01-28-undefined-javasript-is-undefined-.html delete mode 100644 posts/unix/2019-07-04-the-best-way-to-transfer-gopro-files-with-linux.html delete mode 100644 posts/unix/2019-09-28-my-preferred-method-for-data-recovery.html delete mode 100644 posts/unix/2020-07-26-now-this-is-a-minimal-install.html delete mode 100644 posts/unix/2021-01-15-root-on-zfs-a-zpool-of-mirror-vdevs-the-easy-way.html delete mode 100644 posts/unix/2021-03-19-how-to-automate-certbot-renewal-with-haproxy.html delete mode 100644 posts/wheels/2019-06-07-how-to-start-and-drive-a-hudson-hornet.html delete mode 100644 posts/wheels/2019-07-04-yabs-yet-another-bad-shop.html delete mode 100644 posts/wheels/2019-08-30-keep-right-except-to-pass.html create mode 100644 templates/index_foot.html create mode 100644 templates/index_head.html diff --git a/Makefile b/Makefile index c20643c..afa9a7e 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,16 @@ # Written for FreeBSD make(1), or pmake. Not tested with GNU make. -TEMPLATE = templates/template.html +POST_T = templates/template.html +INDEX_HEAD_T = templates/index_foot.html +INDEX_FOOT_T = templates/index_head.html -.PHONY: serve post +.PHONY: serve post clean + +all: index.html serve: python3.7 -m http.server 3000 -profile/adamcarpenter.pdf: profile/adamcarpenter.html - touch profile/adamcarpenter.pdf - post: @read -p "Title: " TITLE; \ read -p "Category: " CATEGORY; \ @@ -17,8 +18,14 @@ post: LONG_DATE=`date +"%a, %d %b %Y"`; \ mkdir -p posts/$$CATEGORY; \ FILENAME=posts/$$CATEGORY/$$SHORT_DATE-`printf "$$TITLE" | tr -Cs "[:alnum:]" '-' | tr "[:upper:]" "[:lower:]"`.html; \ - cp $(TEMPLATE) $$FILENAME; \ + cp $(POST_T) $$FILENAME; \ sed -i '' "s/{{ title }}/$$TITLE/g" $$FILENAME; \ $$EDITOR $$FILENAME; \ sed -i '' "s## $$TITLE $$LONG_DATE https://www.53hor.net/$$FILENAME https://www.53hor.net/$$FILENAME \n#" rss.xml; \ sed -i '' "s#