From 7481e417d69af5fa3e4bfc78e9aa45f8b2d369ce Mon Sep 17 00:00:00 2001 From: Collin Williams <96917990+bluedragon1221@users.noreply.github.com> Date: Sun, 27 Oct 2024 11:08:01 -0500 Subject: fix toc with heading padding stuff --- Makefile | 3 +- article_template.html | 93 --------------------------------------------------- template.html | 83 +++++++++++++++++++++++++++++++++++++++++++-- 3 files changed, 83 insertions(+), 96 deletions(-) delete mode 100644 article_template.html diff --git a/Makefile b/Makefile index 84cc760..4bf5b8b 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,8 @@ $(BUILD_DIR)/stories/%.html: md/%.md | $(BUILD_DIR)/stories pandoc "$<" \ --standalone \ --embed-resources \ - --template article_template.html \ + --toc \ + --template template.html \ -o "$@" diff --git a/article_template.html b/article_template.html deleted file mode 100644 index 79cb640..0000000 --- a/article_template.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - $title$ - - - - -
-
- « Back -

$title$

- $body$ -
- -
- - - diff --git a/template.html b/template.html index a6e44ae..366d7d9 100644 --- a/template.html +++ b/template.html @@ -4,9 +4,88 @@ $title$ + $if(toc)$ + + $endif$ -

$title$

- $body$ +
+
+ « Back +

$title$

+ $body$ +
+ $if(toc)$ + + $endif$ +
-- cgit v1.3.1