Refactor
This commit is contained in:
@@ -4,19 +4,21 @@ import {astroI18n} from "astro-i18n";
|
||||
|
||||
import NavbarLayout from "../../layouts/NavbarLayout.astro";
|
||||
import {l} from "../../util/util";
|
||||
import PageLayout from "../../layouts/PageLayout.astro";
|
||||
let posts = await getCollection("help", entry => entry.id.split("/")[0] === astroI18n.locale);
|
||||
---
|
||||
|
||||
<NavbarLayout title="Helpcenter">
|
||||
<PageLayout title="Helpcenter">
|
||||
<div>
|
||||
<h1>Helpcenter</h1>
|
||||
<h1 class="text-red-700 text-4xl">WIP!</h1>
|
||||
{posts.map(value => (
|
||||
<a href={l("/help/" + value.slug)}>
|
||||
<h2>{value.data.title}</h2>
|
||||
</a>
|
||||
))}
|
||||
</div>
|
||||
</NavbarLayout>
|
||||
</PageLayout>
|
||||
|
||||
<style>
|
||||
div {
|
||||
|
||||
Reference in New Issue
Block a user