summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfr33domlover <fr33domlover@riseup.net>2019-10-03 19:10:08 +0300
committerfr33domlover <fr33domlover@riseup.net>2019-10-03 19:10:08 +0300
commit178c785bb285e8367e18fdc86ec6532af5437edc (patch)
treeb816b3494f8ceaf677ab19514d90611fe0011ba9
parentfc694fae899e3c695170e55d587939e1e7f3ac81 (diff)
Turn off section numbers when TOC is disabled
-rwxr-xr-xbuild.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index a593db3..bc8f5be 100755
--- a/build.sh
+++ b/build.sh
@@ -21,7 +21,7 @@ runPandoc () {
local file="$2"
if [ "$3" == "true" ]; then
- local toc="--table-of-contents"
+ local toc="--table-of-contents --number-sections"
else
local toc=""
fi
@@ -54,7 +54,6 @@ runPandoc () {
--variable "other-theme:$otherTheme" \
--variable "other-theme-name:$otherThemeName" \
--variable "suffix:$suffix" \
- --number-sections \
--output "$output"
#$gitdirty \
}