aboutsummaryrefslogtreecommitdiff
path: root/www/publish.sh
diff options
context:
space:
mode:
Diffstat (limited to 'www/publish.sh')
-rwxr-xr-xwww/publish.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/www/publish.sh b/www/publish.sh
index 8e25d920..9a8a6abc 100755
--- a/www/publish.sh
+++ b/www/publish.sh
@@ -70,12 +70,12 @@ TOC=$(grep -q "^x-toc-enable: true$" "$TMPFILE" && printf '%s\n' "--toc --toc-de
SMART=$(pandoc -v | grep -q '2\.0' || printf '%s\n' "--smart") || SMART=""
# chuck through pandoc
-pandoc $TOC $SMART "$TMPFILE" -s --css /global.css "$OPTS" \
+#
+# $OPTS must not be quoted, otherwise pandoc interprets '--css /headercenter.css'
+# as one argument, when it is actually two.
+pandoc $TOC $SMART "$TMPFILE" -s --css /global.css $OPTS \
--template template.html --metadata return="$RETURN" > "$FILE.html"
-# additionally, produce bare file for RSS
-pandoc "$1" > "$FILE.bare.html"
-
# generate section title anchors as [link]
sed -i -e 's_^<h\([123]\) id="\(.*\)">\(.*\)</h\1>_<div class="h"><h\1 id="\2">\3</h\1><a aria-hidden="true" href="#\2">[link]</a></div>_' "$FILE.html"