Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CaiJimmy/hugo-theme-stack.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcubercsl <2014cais01@gmail.com>2022-06-11 01:34:19 +0300
committerGitHub <noreply@github.com>2022-06-11 01:34:19 +0300
commit9aa6b4925b232628496fa25971a38a7776054aec (patch)
tree33659a0a7be2865e41dedf8a34a6568929d375d9
parent92a6d71ce5d49583a8ad6ac0819cdbef740e6fe4 (diff)
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
-rw-r--r--assets/scss/partials/layout/article.scss2
1 files changed, 1 insertions, 1 deletions
diff --git a/assets/scss/partials/layout/article.scss b/assets/scss/partials/layout/article.scss
index b834282..a809f8d 100644
--- a/assets/scss/partials/layout/article.scss
+++ b/assets/scss/partials/layout/article.scss
@@ -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;