diff --git a/src/pages/nkauj/index.astro b/src/pages/nkauj/index.astro index 72b2436..8718601 100644 --- a/src/pages/nkauj/index.astro +++ b/src/pages/nkauj/index.astro @@ -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); --- diff --git a/src/pages/tub-hu-nkauj/index.astro b/src/pages/tub-hu-nkauj/index.astro new file mode 100644 index 0000000..dc7eb3b --- /dev/null +++ b/src/pages/tub-hu-nkauj/index.astro @@ -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")); +--- + + + + + + + +
+
+ ww {posts} ww +
+ { + posts.map((post: any) => ( +
+ +

{post.data.title}

+
+

{post.data.pubDate}

+
+ )) + } +
+
+