fix(style): toc counter is incorrect when there are <a>
in heading (#601)
closes https://github.com/CaiJimmy/hugo-theme-stack/issues/495, https://github.com/CaiJimmy/hugo-theme-stack/issues/589
This commit is contained in:
parent
92a6d71ce5
commit
9aa6b4925b
@ -108,7 +108,7 @@
|
||||
list-style-type: none;
|
||||
counter-reset: item;
|
||||
|
||||
li a::before {
|
||||
li a:first-of-type::before {
|
||||
counter-increment: item;
|
||||
content: counters(item, ".") ". ";
|
||||
font-weight: bold;
|
||||
|
Loading…
Reference in New Issue
Block a user