add tags and category pages, then update backend apis

This commit is contained in:
Jiao77
2026-03-01 10:22:39 +08:00
parent 72baa341cc
commit e9b0742032
14 changed files with 721 additions and 34 deletions

View File

@@ -1,5 +1,6 @@
---
import '../styles/global.css';
import UserStatus from '../components/UserStatus.vue';
interface Props {
title: string;
@@ -104,16 +105,15 @@ const socialImageURL = image.startsWith('http') ? image : new URL(image, site).h
<div class="hidden md:flex items-center gap-6">
<a href="/" class="text-foreground/70 hover:text-foreground transition-colors">首页</a>
<a href="/blog" class="text-foreground/70 hover:text-foreground transition-colors">博客</a>
<a href="/categories" class="text-foreground/70 hover:text-foreground transition-colors">分类</a>
<a href="/tags" class="text-foreground/70 hover:text-foreground transition-colors">标签</a>
<a href="/about" class="text-foreground/70 hover:text-foreground transition-colors">关于</a>
</div>
<!-- Actions -->
<div class="flex items-center gap-3">
<!-- Login Link -->
<a href="/login" class="btn-ghost px-3 py-1.5 rounded-lg text-sm font-medium">
登录
</a>
<!-- User Status (登录状态) -->
<UserStatus client:load />
<!-- Theme Toggle -->
<button
@@ -151,6 +151,7 @@ const socialImageURL = image.startsWith('http') ? image : new URL(image, site).h
<div class="content-width py-4 flex flex-col gap-3">
<a href="/" class="text-foreground/70 hover:text-foreground transition-colors py-2">首页</a>
<a href="/blog" class="text-foreground/70 hover:text-foreground transition-colors py-2">博客</a>
<a href="/categories" class="text-foreground/70 hover:text-foreground transition-colors py-2">分类</a>
<a href="/tags" class="text-foreground/70 hover:text-foreground transition-colors py-2">标签</a>
<a href="/about" class="text-foreground/70 hover:text-foreground transition-colors py-2">关于</a>
</div>