From c61bcd3a415f2fe77464aeb0b16369e2846336b4 Mon Sep 17 00:00:00 2001 From: HangerThem Date: Wed, 5 Aug 2026 11:54:39 +0200 Subject: [PATCH] Fixes for few tags and categories pages --- .../categories/[categorySlug]/page.tsx | 49 +++++++++---------- app/(withRecent)/categories/page.tsx | 2 +- app/(withRecent)/tags/[tagSlug]/page.tsx | 49 +++++++++---------- app/(withRecent)/tags/page.tsx | 2 +- content/posts/vigilare-custom-dashboard.md | 2 +- 5 files changed, 47 insertions(+), 57 deletions(-) diff --git a/app/(withRecent)/categories/[categorySlug]/page.tsx b/app/(withRecent)/categories/[categorySlug]/page.tsx index 6593544..3bbaa97 100644 --- a/app/(withRecent)/categories/[categorySlug]/page.tsx +++ b/app/(withRecent)/categories/[categorySlug]/page.tsx @@ -52,33 +52,28 @@ export default async function CategoryPage({ params }: CategoryPageProps) {
~/categories/{categorySlug}
-
- - {category} - -
    - {posts.map((post) => ( -
  • - - - {post.title} - - {post.date && ( - - )} - -
  • - ))} -
-
+
) } diff --git a/app/(withRecent)/categories/page.tsx b/app/(withRecent)/categories/page.tsx index 6a3eec0..cd9d8ba 100644 --- a/app/(withRecent)/categories/page.tsx +++ b/app/(withRecent)/categories/page.tsx @@ -30,7 +30,7 @@ export async function generateMetadata(): Promise { export default function CategoriesPage() { const categories = getAllCategories() const posts = getAllPostsMeta() - const categoryNames = Object.keys(categories) + const categoryNames = Object.keys(categories).toSorted((a, b) => a.localeCompare(b)) return (
diff --git a/app/(withRecent)/tags/[tagSlug]/page.tsx b/app/(withRecent)/tags/[tagSlug]/page.tsx index 24cd228..aacdd63 100644 --- a/app/(withRecent)/tags/[tagSlug]/page.tsx +++ b/app/(withRecent)/tags/[tagSlug]/page.tsx @@ -52,33 +52,28 @@ export default async function TagPage({ params }: TagPageProps) {
~/tags/{tagSlug}
-
- - {tag} - -
    - {posts.map((post) => ( -
  • - - - {post.title} - - {post.date && ( - - )} - -
  • - ))} -
-
+
    + {posts.map((post) => ( +
  • + + + {post.title} + + {post.date && ( + + )} + +
  • + ))} +
) } diff --git a/app/(withRecent)/tags/page.tsx b/app/(withRecent)/tags/page.tsx index d4283cf..207f829 100644 --- a/app/(withRecent)/tags/page.tsx +++ b/app/(withRecent)/tags/page.tsx @@ -30,7 +30,7 @@ export async function generateMetadata(): Promise { export default function TagsPage() { const tags = getAllTags() const posts = getAllPostsMeta() - const tagNames = Object.keys(tags) + const tagNames = Object.keys(tags).toSorted((a, b) => a.localeCompare(b)) return (
diff --git a/content/posts/vigilare-custom-dashboard.md b/content/posts/vigilare-custom-dashboard.md index 0d5870e..92e2af9 100644 --- a/content/posts/vigilare-custom-dashboard.md +++ b/content/posts/vigilare-custom-dashboard.md @@ -2,7 +2,7 @@ title: "Vigilare: A Local-First Productivity Dashboard" description: Introducing Vigilare, a local-first, customizable productivity dashboard built with Next.js. Designed for developers and technical users, Vigilare offers a distraction-free way to manage links, notes, commands, and service status without logins or cloud dependencies. date: 2026-02-07 14:00:00 +0200 -categories: [Productivity, Tech] +category: Productivity tags: [vigilare, dashboard, productivity, browser, organization, focus] ---