From 53936d89f8385630a4cae0b39248603674f833f9 Mon Sep 17 00:00:00 2001 From: Sat Naing Date: Sun, 11 Sep 2022 14:08:22 +0630 Subject: [PATCH] Add tags page --- src/pages/tags.astro | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/pages/tags.astro diff --git a/src/pages/tags.astro b/src/pages/tags.astro new file mode 100644 index 0000000..f5a8bcb --- /dev/null +++ b/src/pages/tags.astro @@ -0,0 +1,21 @@ +--- +import Header from "@components/Header.astro"; +import Tag from "@components/Tag.astro"; +import Layout from "@layouts/Layout.astro"; +import Main from "@layouts/Main.astro"; +import getUniqueTags from "src/utils/getUniqueTags"; +import type { Frontmatter } from "./index.astro"; + +const posts = await Astro.glob("../contents/*.md"); + +let tags = getUniqueTags(posts); +--- + + +
+
+
    + {tags.map((tag) => )} +
+
+