hswg: preset some attributes
This commit is contained in:
parent
103704b183
commit
d643187333
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user