AstroCol/src/components/WikiEntry.astro

22 lines
406 B
Plaintext
Raw Normal View History

2024-11-08 09:56:44 +00:00
---
import WikiPageEntry from "../types/WikiPageEntry";
const { entry } = Astro.props as { entry: WikiPageEntry };
---
<li>
<a href={entry.url}>{entry.title}</a>
{entry.children.length > 0 && (
<ul>
{entry.children.map((child: WikiPageEntry) => <Astro.self entry={child} />)}
</ul>
)}
</li>
<style>
a {
color: lime;
}
li {
list-style-type: none;
}
</style>