squeeze

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

commit adab1dee32d72c973747c77b54f6b440de4746e6
parent 6b21fede3a2b3fc43782c91f9ef90c6d0cfd0a91
Author: St John Karp <contact@stjo.hn>
Date:   Sat, 13 Jul 2019 14:28:30 -0500

Output XHTML instead of reading strict XML

For some reason XML eliminated a bunch of important spacing.

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

diff --git a/tastic.sh b/tastic.sh @@ -45,10 +45,11 @@ then # Parse and create all the HTML files. find $SITE_PATH/$SOURCE_DIR -type f -name "*.md" -print0 | while IFS= read -r -d '' file; do + echo $file 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 -xml --tidy-mark no | + tidy -quiet --indent auto --indent-with-tabs yes --wrap 0 -asxml --tidy-mark no | ~/.local/bin/smartypants \ > "$NEW_PATH" done