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:
cubercsl 2022-06-11 06:34:19 +08:00 committed by GitHub
parent 92a6d71ce5
commit 9aa6b4925b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -108,7 +108,7 @@
list-style-type: none; list-style-type: none;
counter-reset: item; counter-reset: item;
li a::before { li a:first-of-type::before {
counter-increment: item; counter-increment: item;
content: counters(item, ".") ". "; content: counters(item, ".") ". ";
font-weight: bold; font-weight: bold;