{{title}}
+
+
+
/' -e 's/^\+ /+
/' -e '/
/ s/$/<\/p>/' \
+ | rec2csv \
+ | csvjson \
+ | jq 'reverse \
+ | map(.body |= gsub("\n"; "\n\n"))' \
+ | jq '. | { data: . }'
+
+# html
+html:
+ just _json \
+ | mustache - templates/html.mustache \
+ > www/index.html
+
+# rss
+rss:
+ just _json \
+ | mustache - templates/feed.mustache \
+ > www/feed.xml
+
+# build html and rss
+build: html rss
+
+# upload
+up:
+ rsync -azP --exclude=.git www/ tilde:public_html/consume/
+
+# build and upload
+all: build up
diff --git a/templates/feed.mustache b/templates/feed.mustache
new file mode 100644
index 0000000..f998a69
--- /dev/null
+++ b/templates/feed.mustache
@@ -0,0 +1,26 @@
+
+
Episode: {{.}}
+ {{/episode}} + {{{body}}} + ]]> + + + {{/data}} + + diff --git a/templates/html.mustache b/templates/html.mustache new file mode 100644 index 0000000..d64b52f --- /dev/null +++ b/templates/html.mustache @@ -0,0 +1,102 @@ + + + + + + +
+
+