From 3ed03f0496c08f489012698586595db7177758c3 Mon Sep 17 00:00:00 2001 From: liding Date: Fri, 28 Jun 2024 22:51:34 +0800 Subject: [PATCH] Hide HTML h tag of table of content. --- src/components/article/ArticleBody.astro | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/article/ArticleBody.astro b/src/components/article/ArticleBody.astro index 3361c04..ba409f0 100644 --- a/src/components/article/ArticleBody.astro +++ b/src/components/article/ArticleBody.astro @@ -49,6 +49,10 @@ const articlePrettyName = article!.id.split("/").pop()!.replace(".md", ""); margin: 1em 0 1em 0; padding: 0 0 0 20px; } + /* hide TOC headint */ + :global(.article-title ~ h2:nth-of-type(1)) { + display: none; + } /* font for all code */ :global(.article code) { font-family: "Consolas", "Tahoma", sans-serif;