From bf3607bdd0ae1ed62b926c675b4ac3d5dd380674 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 3 Apr 2017 12:26:18 -0700 Subject: Use a custom template --- www/publish.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'www/publish.sh') diff --git a/www/publish.sh b/www/publish.sh index dadb83e0..efe3249d 100755 --- a/www/publish.sh +++ b/www/publish.sh @@ -8,7 +8,7 @@ head -n 4 $FILE.md > temp.md # if not homepage, add a link back to the homepage if [ "${FILE}" != "./index" ]; then - printf "[Go back to homepage](/index.md)\n\n" >> temp.md + RETURN="

Go back to homepage

" fi # read rest of file @@ -30,4 +30,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 > $FILE.html +pandoc $SMART temp.md -s --css /global.css --section-divs -T Libreboot $TOC --template=template.html --metadata "return=$RETURN" > $FILE.html -- cgit v1.2.3-70-g09d2