mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-27 06:00:25 +03:00
markup/tableofcontents: Add config option for ordered list
This commit is contained in:
parent
186a5ebfca
commit
4c804319f6
6 changed files with 68 additions and 13 deletions
|
@ -292,7 +292,7 @@ func (p *pageContentOutput) TableOfContents() template.HTML {
|
|||
p.p.s.initInit(p.initMain, p.p)
|
||||
if tocProvider, ok := p.convertedResult.(converter.TableOfContentsProvider); ok {
|
||||
cfg := p.p.s.ContentSpec.Converters.GetMarkupConfig()
|
||||
return template.HTML(tocProvider.TableOfContents().ToHTML(cfg.TableOfContents.StartLevel, cfg.TableOfContents.EndLevel))
|
||||
return template.HTML(tocProvider.TableOfContents().ToHTML(cfg.TableOfContents.StartLevel, cfg.TableOfContents.EndLevel, cfg.TableOfContents.Ordered))
|
||||
}
|
||||
return p.tableOfContents
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue