From d628a77df6f5124627404ed9d79aa164f33fbcb8 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 3 Apr 2017 22:59:57 -0700 Subject: Misc www cleanup --- www/publish.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'www/publish.sh') diff --git a/www/publish.sh b/www/publish.sh index 6de15662..671163f6 100755 --- a/www/publish.sh +++ b/www/publish.sh @@ -3,12 +3,16 @@ echo $1 FILE=${1%.md} -# if not homepage, add a link back to the homepage +cat $1 > temp.md + +# add footer + +echo '' >> temp.md + if [ "${FILE}" != "./index" ]; then - RETURN="

Go back to homepage

" + echo -ne '[Back to home](/index.html) -- ' >> temp.md fi -cat $1 > temp.md echo "[License](license.md)" >> temp.md # change out .md -> .html @@ -21,5 +25,4 @@ TOC=$(grep -q "^x-toc-enable: true$" temp.md && echo "--toc") SMART=$(pandoc -v | grep -q '2\.0' || echo "--smart") # chuck through pandoc -pandoc $SMART temp.md -s --css /global.css --section-divs -T Libreboot $TOC \ - --template=template.html --metadata "return=$RETURN" > $FILE.html +pandoc $TOC $SMART temp.md -s --css /global.css -T Libreboot > $FILE.html -- cgit v1.2.3-70-g09d2