Files
forumlify/app/layout.js
T
lezi-fun 48372aa14f feat: align with upstream — pin posts, edit marker, custom CSS, UX fixes
- Pin/unpin posts (PUT /api/posts/:id/pin, admin) with notification to author
- is_pinned/pinned_at in schema; 📌 badge on feed + detail; admin pin button
- Edited marker (已编辑) on feed + detail; edit button + modal for authors
- Custom CSS: upload/delete API + admin tab + global loader (style.css override)
- Fix: duplicate post title on detail page (remove card title, keep header)
- Fix: forum name flicker on load (localStorage cache before fetch)
- Fix: dropdown menu closes on outside click (document listener)
- Fix: document.title + <title> sync on forum rename
2026-08-10 12:35:50 +08:00

20 lines
421 B
JavaScript

// 全局布局
import './globals.css';
import CustomCssLoader from '@/components/CustomCssLoader';
export const metadata = {
title: 'Forumlify',
description: 'Forumlify - 简洁优雅的现代社区系统',
};
export default function RootLayout({ children }) {
return (
<html lang="zh-CN" suppressHydrationWarning>
<body>
<CustomCssLoader />
{children}
</body>
</html>
);
}