Fix: TOC first line ### heading

This commit is contained in:
hyzen
2026-04-10 18:58:38 +05:30
parent 41231d2efe
commit 29c576c930
2 changed files with 18 additions and 0 deletions

View File

@@ -1,3 +1,12 @@
/* ── TOC: hide phantom empty bullet when post starts with ### (h3) ──────── */
/* Hugo wraps orphaned h3s in a li>ul, leaving an empty li with no direct
anchor. This hides it without affecting any meaningful TOC entry. */
#TableOfContents > ul > li:first-child:not(:has(> a)) {
list-style: none;
margin: 0;
padding: 0;
}
/* ── UniNotes ───────────────────────────────────────────────────────────── */
.uninotes-breadcrumbs {

View File

@@ -1,3 +1,12 @@
/* ── TOC: hide phantom empty bullet when post starts with ### (h3) ──────── */
/* Hugo wraps orphaned h3s in a li>ul, leaving an empty li with no direct
anchor. This hides it without affecting any meaningful TOC entry. */
#TableOfContents > ul > li:first-child:not(:has(> a)) {
list-style: none;
margin: 0;
padding: 0;
}
/* ── UniNotes ───────────────────────────────────────────────────────────── */
.uninotes-breadcrumbs {