mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-16 01:01:38 +00:00
Add unique key in toc
This commit is contained in:
@ -13,13 +13,11 @@ const PostTOC: FC<Props> = ({ headings }) => {
|
|||||||
|
|
||||||
<ul className="pl-4 border-l-4 border-gray-300">
|
<ul className="pl-4 border-l-4 border-gray-300">
|
||||||
{headings?.map((h) => (
|
{headings?.map((h) => (
|
||||||
<>
|
<li key={h.link}>
|
||||||
<li>
|
<Anchor href={h.link} external={false}>
|
||||||
<Anchor href={h.link} external={false}>
|
{h.text}
|
||||||
{h.text}
|
</Anchor>
|
||||||
</Anchor>
|
</li>
|
||||||
</li>
|
|
||||||
</>
|
|
||||||
))}
|
))}
|
||||||
</ul>
|
</ul>
|
||||||
</>
|
</>
|
||||||
|
Reference in New Issue
Block a user