From 25a9cbda8f5240c62ef19f1b921dab2b02b9e1a2 Mon Sep 17 00:00:00 2001 From: HangerThem Date: Tue, 4 Aug 2026 09:51:06 +0200 Subject: [PATCH] Favicon and tags/categories pages fix --- .../categories/[categorySlug]/page.tsx | 38 ++++++++++++++---- app/(withRecent)/categories/page.tsx | 8 ++-- app/(withRecent)/tags/[tagSlug]/page.tsx | 38 ++++++++++++++---- app/(withRecent)/tags/page.tsx | 8 ++-- app/apple-icon.png | Bin 0 -> 2405 bytes app/favicon.ico | Bin 25931 -> 15086 bytes app/icon0.svg | 1 + app/icon1.png | Bin 0 -> 857 bytes app/manifest.ts | 25 ++++++++++++ app/metadata.ts | 5 +++ app/posts/[slug]/page.tsx | 8 +++- components/content/ImageWrapper.tsx | 2 +- components/layout/Sidebar.tsx | 4 +- components/layout/navItems.tsx | 8 +++- components/post/Post.tsx | 2 +- components/post/TableOfContents.tsx | 7 +++- public/logo.png | Bin 0 -> 12301 bytes public/{ => posts}/image.png | Bin public/{ => posts}/standard_model.svg | 0 public/web-app-manifest-192x192.png | Bin 0 -> 2676 bytes public/web-app-manifest-512x512.png | Bin 0 -> 12301 bytes 21 files changed, 120 insertions(+), 34 deletions(-) create mode 100644 app/apple-icon.png create mode 100644 app/icon0.svg create mode 100644 app/icon1.png create mode 100644 app/manifest.ts create mode 100644 public/logo.png rename public/{ => posts}/image.png (100%) rename public/{ => posts}/standard_model.svg (100%) create mode 100644 public/web-app-manifest-192x192.png create mode 100644 public/web-app-manifest-512x512.png diff --git a/app/(withRecent)/categories/[categorySlug]/page.tsx b/app/(withRecent)/categories/[categorySlug]/page.tsx index 8ba8c71..6593544 100644 --- a/app/(withRecent)/categories/[categorySlug]/page.tsx +++ b/app/(withRecent)/categories/[categorySlug]/page.tsx @@ -1,5 +1,6 @@ import { metadata } from '@/app/metadata' import { getAllCategories, getCategoryBySlug, getPostsByCategory } from '@/lib/categories' +import { dateFormatter } from '@/utils/time' import type { Metadata } from 'next' import Link from 'next/link' @@ -49,14 +50,35 @@ export default async function CategoryPage({ params }: CategoryPageProps) { return (
-

Category: {category}

- +
~/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 4a45c98..6a3eec0 100644 --- a/app/(withRecent)/categories/page.tsx +++ b/app/(withRecent)/categories/page.tsx @@ -34,9 +34,9 @@ export default function CategoriesPage() { return (
-
~/categories
+
~/categories
-
) } diff --git a/app/(withRecent)/tags/page.tsx b/app/(withRecent)/tags/page.tsx index 8837328..d4283cf 100644 --- a/app/(withRecent)/tags/page.tsx +++ b/app/(withRecent)/tags/page.tsx @@ -34,9 +34,9 @@ export default function TagsPage() { return (
-
~/tags
+
~/tags
-