From d643187333e1318e2fbf6314d07d1f6c6bd54930 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Wed, 5 Oct 2022 20:38:13 +0200 Subject: hswg: preset some attributes --- hswg/main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hswg/main.go b/hswg/main.go index 458fe87..dca9fea 100644 --- a/hswg/main.go +++ b/hswg/main.go @@ -193,6 +193,9 @@ func renderEntry(name string, e *Entry) error { if html, e.Metadata, err = Render(f, configuration.NewConfiguration( configuration.WithFilename(e.PathSource), configuration.WithLastUpdated(e.mtime), + configuration.WithAttribute("toc", "preamble"), + configuration.WithAttribute("toc-title", "+++

Contents

+++"), + configuration.WithAttribute("source-highlighter", "chroma"), )); err != nil { return err } -- cgit v1.2.3-70-g09d2