From 8d90867868b86c53b8cf7bc88d5f188ab7ccd58e Mon Sep 17 00:00:00 2001 From: "Adam T. Carpenter" Date: Fri, 4 Dec 2020 16:08:27 -0500 Subject: makefile automatically inserts title into template, added aoc2020 --- Makefile | 1 + index.html | 1 + .../2020-12-04-aoc-2020-day-1-in-cbm-basic.html | 237 +++++++++++++++++++++ rss.xml | 1 + 4 files changed, 240 insertions(+) create mode 100644 posts/programming/2020-12-04-aoc-2020-day-1-in-cbm-basic.html diff --git a/Makefile b/Makefile index 1571a60..b8b9e14 100644 --- a/Makefile +++ b/Makefile @@ -18,6 +18,7 @@ post: mkdir -p posts/$$CATEGORY; \ FILENAME=posts/$$CATEGORY/$$SHORT_DATE-`echo $$TITLE | tr "[:upper:]" "[:lower:]" | tr "[:blank:]" -`.html; \ cp $(TEMPLATE) $$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#