summaryrefslogtreecommitdiff
path: root/src/components/blog/TOCHeading.astro
diff options
context:
space:
mode:
authorDawid Rycerz <dawid@rycerz.xyz>2025-07-03 19:23:17 +0300
committerDawid Rycerz <dawid@rycerz.xyz>2025-07-03 19:23:17 +0300
commit32f719a3de8969d674f609869d406a0a91f6d1f0 (patch)
tree501e4ec08e1a2e595ade652e6be48245da294669 /src/components/blog/TOCHeading.astro
parentd015147a6c25e2be49f21d6e73a9b309f15daf9d (diff)
Remove TOC
Diffstat (limited to 'src/components/blog/TOCHeading.astro')
-rw-r--r--src/components/blog/TOCHeading.astro27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/components/blog/TOCHeading.astro b/src/components/blog/TOCHeading.astro
deleted file mode 100644
index b9dd486..0000000
--- a/src/components/blog/TOCHeading.astro
+++ /dev/null
@@ -1,27 +0,0 @@
----
-import type { TocItem } from "@/utils/generateToc";
-
-interface Props {
- heading: TocItem;
-}
-
-const {
- heading: { children, depth, slug, text },
-} = Astro.props;
----
-
-<li class={`${depth > 2 ? "ms-2" : ""}`}>
- <a
- class={`line-clamp-2 hover:text-accent ${depth <= 2 ? "mt-3" : "mt-2 text-xs"}`}
- href={`#${slug}`}><span aria-hidden="true" class="me-0.5">#</span>{text}</a
- >
- {
- !!children.length && (
- <ol>
- {children.map((subheading) => (
- <Astro.self heading={subheading} />
- ))}
- </ol>
- )
- }
-</li>