Skip to content

Commit

Permalink
sort tags
Browse files Browse the repository at this point in the history
  • Loading branch information
vernak2539 committed Apr 1, 2024
1 parent 45f5a49 commit 454ae0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/blog/tags/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Layout from "../../../layouts/BaseLayout.astro";
import { getCollection } from "astro:content";
const posts = await getCollection("blog");
const tags = [...new Set(posts.map((post) => post.data.tags).flat())];
const tags = [...new Set(posts.map((post) => post.data.tags).flat())].sort();
---

<Layout>
Expand Down

0 comments on commit 454ae0f

Please sign in to comment.