From 9aa6b4925b232628496fa25971a38a7776054aec Mon Sep 17 00:00:00 2001 From: cubercsl <2014cais01@gmail.com> Date: Sat, 11 Jun 2022 06:34:19 +0800 Subject: fix(style): toc counter is incorrect when there are `` in heading (#601) closes https://github.com/CaiJimmy/hugo-theme-stack/issues/495, https://github.com/CaiJimmy/hugo-theme-stack/issues/589 --- assets/scss/partials/layout/article.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3