You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.0 KiB

---
import Base from "../layout/Base.astro";
const allFics = await Astro.glob("./fanfic/*.md*");
---
<Base title="ruthenic.com: Fanfics">
<h1>Fanfics</h1>
<div>
{
allFics
.sort((a, b) =>
a.frontmatter.title.localeCompare(b.frontmatter.title)
)
.map((fic) =>
(
<a href={fic.url}>
<div
class="main-content"
style="margin-bottom: 10px; font-size: 125%;"
>
<div>
<b>{fic.frontmatter.title}</b>{fic.frontmatter.oneshot ? (<div> - (Oneshot)</div>) : undefined}
<br />
</div>
<i>{fic.frontmatter.description}</i>
{fic.frontmatter.tags.toString().split(",").join(", ")}
</div>
</a>
)
)
}
</div>
</Base>