Skip to content

Commit

Permalink
office commit
Browse files Browse the repository at this point in the history
  • Loading branch information
soulinmaikadua committed Mar 19, 2024
1 parent 73efe3d commit 1b54c3c
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/pages/nkauj/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { getCollection } from "astro:content";
const posts = (await getCollection("nkauj")).sort(
(a: any, b: any) => b.data.pubDate.valueOf() - a.data.pubDate.valueOf()
);
console.log(posts);
---

<!doctype html>
Expand Down
38 changes: 38 additions & 0 deletions src/pages/tub-hu-nkauj/index.astro
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>

0 comments on commit 1b54c3c

Please sign in to comment.