squeeze

A static site generator that can put the toothpaste back in the tube.
git clone https://git.mulligrubs.me/squeeze
Log | Files | Refs | README | LICENSE

commit 85364df7c5196d152b42150ae328ac00649e336a
parent 1e68d8bb83c797d25cebd6f02dff5040e6b28ae3
Author: St John Karp <stjohn@fuzzjunket.com>
Date:   Tue,  9 Jul 2019 06:44:39 -0500

Output strict XML

Instruct Tidy that everything should be well-formed XML.

Diffstat:
Mtastic.sh | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/tastic.sh b/tastic.sh @@ -45,7 +45,7 @@ then NEW_PATH=`echo $file | sed "s|^$SITE_PATH/$SOURCE_DIR|$SITE_PATH/$OUTPUT_DIR|" | sed 's|.md$|.html|'` cat $file | \ swipl --traditional -q -l entries.pl -g "consult('$SITE_PATH/site.pl'), generate_entry." | \ - tidy -quiet --indent auto --indent-with-tabs yes --wrap 0 | \ + tidy -quiet --indent auto --indent-with-tabs yes --wrap 0 -xml --tidy-mark no | \ ~/.local/bin/smartypants \ > $NEW_PATH done @@ -60,7 +60,8 @@ then mkdir -p $SITE_PATH/$OUTPUT_DIR/feeds ARTICLES=`grep -Rl --include=\*.md "^Date: " $SITE_PATH/$SOURCE_DIR | paste -sd ',' - | sed "s|,|','|g"` BUILD_DATE=`date +"%Y-%m-%d %T"` - swipl --traditional -q -l rss.pl -g "consult('$SITE_PATH/site.pl'), generate_rss(\"$BUILD_DATE\", ['$ARTICLES'])." \ + swipl --traditional -q -l rss.pl -g "consult('$SITE_PATH/site.pl'), generate_rss(\"$BUILD_DATE\", ['$ARTICLES'])." | \ + tidy -quiet --indent auto --indent-with-tabs yes --wrap 0 -xml --tidy-mark no \ > $SITE_PATH/$OUTPUT_DIR/feeds/rss.xml else echo "Invalid argument."