diff options
author | Alyssa Rosenzweig <alyssa@rosenzweig.io> | 2017-04-03 12:26:18 -0700 |
---|---|---|
committer | Alyssa Rosenzweig <alyssa@rosenzweig.io> | 2017-04-03 12:26:18 -0700 |
commit | bf3607bdd0ae1ed62b926c675b4ac3d5dd380674 (patch) | |
tree | e8a435f15fffad0e0fa3cbf91f33ee940764be70 /www/publish.sh | |
parent | e5d71ae5577d2ebafbda4a43a20211e996365d3f (diff) | |
download | librebootfr-bf3607bdd0ae1ed62b926c675b4ac3d5dd380674.tar.gz librebootfr-bf3607bdd0ae1ed62b926c675b4ac3d5dd380674.zip |
Use a custom template
Diffstat (limited to 'www/publish.sh')
-rwxr-xr-x | www/publish.sh | 4 |
1 files changed, 2 insertions, 2 deletions
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="<p><a href='/index.md'>Go back to homepage</a></p>" 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 |