Markdown source build system
This commit is contained in:
10
markdown/2019-04-14-reboot.md
Normal file
10
markdown/2019-04-14-reboot.md
Normal file
@@ -0,0 +1,10 @@
|
||||
<!--# set var="title" value="Reboot" -->
|
||||
<!--# set var="date" value="April 14, 2019" -->
|
||||
|
||||
<!--# include file="include/top.html" -->
|
||||
|
||||
Previous generations of "where the flamingcow roams" have existed on Blogger and Medium, but have been dormant for some time. Tired of my posts there being "decorated" by the hosting provider without approval and inspired by [Fabien Sanglard](https://fabiensanglard.net/bloated/index.html), I'm rebooting here.
|
||||
|
||||
Posts prior to this one are copied from Blogger or Medium. Forgive me for all their historical naiveté. Posts after this are new here, and I'm sure will look equally silly in ten years.
|
||||
|
||||
<!--# include file="include/bottom.html" -->
|
||||
12
markdown/build-html.sh
Executable file
12
markdown/build-html.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
BASEDIR=$(dirname $0)
|
||||
|
||||
for FILE in $BASEDIR/*.md; do
|
||||
BASENAME=$(basename $FILE)
|
||||
OUTNAME=${BASENAME%.md}.html
|
||||
echo "$BASENAME -> $OUTNAME"
|
||||
TEMP=$(tempfile --dir=$BASEDIR)
|
||||
markdown $FILE > $TEMP
|
||||
mv $TEMP $BASEDIR/../$OUTNAME
|
||||
done
|
||||
Reference in New Issue
Block a user