-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
73efe3d
commit 1b54c3c
Showing
2 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
import BaseHead from "../../components/BaseHead.astro"; | ||
import Header from "../../components/Header.astro"; | ||
import Footer from "../../components/Footer.astro"; | ||
import { SITE_TITLE, SITE_DESCRIPTION } from "../../consts"; | ||
import { getCollection } from "astro:content"; | ||
const posts = (await getCollection("nkauj")).filter(post => post.id.includes("kawm-muas")); | ||
--- | ||
|
||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<BaseHead title={SITE_TITLE} description={SITE_DESCRIPTION} /> | ||
</head> | ||
<body> | ||
<Header /> | ||
<main class="max-w-6xl mx-auto px-4 py-3"> | ||
ww {posts} ww | ||
<section> | ||
{ | ||
posts.map((post: any) => ( | ||
<div class="border-b mb-2"> | ||
<a | ||
href={`/nkauj/nkauj/${post.slug}/`} | ||
class="shadow-md rounded shadow-orange-300 hover:shadow-orange-600" | ||
> | ||
<h4 class="title">{post.data.title}</h4> | ||
</a> | ||
<p class="text-sm">{post.data.pubDate}</p> | ||
</div> | ||
)) | ||
} | ||
</section> | ||
</main> | ||
<Footer /> | ||
</body> | ||
</html> |