Fix table of contents for hugo
Hugo has some hardcoded checks that have to be fulfilled in its Table of Contents extraction workflow (helpers/content ExtractTOC). It's easier this way...
This commit is contained in:
parent
940b1c7125
commit
d3d3b6c593
4 changed files with 34 additions and 65 deletions
18
org/testdata/headlines.html
vendored
18
org/testdata/headlines.html
vendored
|
@ -1,22 +1,16 @@
|
|||
<nav>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="#headline-1">Simple Headline <code class="statistic">[1/2]</code></a>
|
||||
<li><a href="#headline-1">Simple Headline <code class="statistic">[1/2]</code></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#headline-2">Headline with todo status & priority</a>
|
||||
<li><a href="#headline-2">Headline with todo status & priority</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#this-will-be-the-id-of-the-headline">Headline with TODO status</a>
|
||||
<li><a href="#this-will-be-the-id-of-the-headline">Headline with TODO status</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#headline-4">Headline with tags & priority</a>
|
||||
<li><a href="#headline-4">Headline with tags & priority</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#headline-5">headline with custom status</a>
|
||||
<li><a href="#headline-5">headline with custom status</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#headline-6">excluded headline</a>
|
||||
<li><a href="#headline-6">excluded headline</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue