mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-26 21:18:49 +00:00
fix comment
This commit is contained in:
parent
64b8fd9584
commit
be3f68ed06
@ -10,6 +10,7 @@ type Props = {
|
|||||||
|
|
||||||
const { headings, githubEditUrl } = Astro.props as Props;
|
const { headings, githubEditUrl } = Astro.props as Props;
|
||||||
let currentPage = Astro.url.pathname;
|
let currentPage = Astro.url.pathname;
|
||||||
|
// remove slash before #
|
||||||
currentPage = currentPage.endsWith('/') ? currentPage.slice(0, -1) : currentPage;
|
currentPage = currentPage.endsWith('/') ? currentPage.slice(0, -1) : currentPage;
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@ -12,7 +12,6 @@ const TableOfContents: FunctionalComponent<{ headings: MarkdownHeading[]; curren
|
|||||||
headings = [],
|
headings = [],
|
||||||
currentPage,
|
currentPage,
|
||||||
}) => {
|
}) => {
|
||||||
// remove slash before #
|
|
||||||
const toc = useRef<any>();
|
const toc = useRef<any>();
|
||||||
const onThisPageID = 'on-this-page-heading';
|
const onThisPageID = 'on-this-page-heading';
|
||||||
const itemOffsets = useRef<ItemOffsets[]>([]);
|
const itemOffsets = useRef<ItemOffsets[]>([]);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user