krz/orgo

Lightning fast org-mode static site generator.

clone: git clone https://gitbay.org/krz/orgo.git

978d2a152a15ae71829ee4cb4dc3e4ff56baa3ca

verified · cmc

author: Christian Cleberg <hello@cleberg.net> · 2026-08-11T06:08:50Z

Document toc and section_numbers in the starter config

An earlier edit did not match, so `org-ssg init` wrote a config that omitted the two
[html] settings added with the table of contents. Every other setting is shown at its
default in that file, which is the point of it — a knob missing from it is a knob nobody
finds.
 src/config.rs | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/config.rs b/src/config.rs
index b606dc4..e04ecf4 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -439,6 +439,11 @@ drafts = false
 # The default of 1 matches Emacs, and assumes your layout renders the page title as the
 # <h1>. Set to 0 if your template renders no title of its own.
 heading_offset = 1
+# Make page.toc available to templates. A document opts out with `#+OPTIONS: toc:nil`.
+toc = true
+# Number headings (1., 1.1., …). Emacs defaults this on; most sites do not.
+# A document overrides with `#+OPTIONS: num:t`.
+section_numbers = false
 
 # Generated listing pages: output files with no source .org behind them. Repeat the
 # [[collections]] block for each one. A feed is the same thing with an XML template.