diff options
Diffstat (limited to 'hswg')
-rw-r--r-- | hswg/main.go | 3 |
1 files changed, 3 insertions, 0 deletions
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", "+++<h2>Contents</h2>+++"), + configuration.WithAttribute("source-highlighter", "chroma"), )); err != nil { return err } |