layout.tsx 771 B

1234567891011121314151617181920
  1. import type { Metadata } from 'next';
  2. import { Geist, Geist_Mono } from 'next/font/google';
  3. import './globals.css';
  4. const sans = Geist({ variable: '--font-geist-sans', subsets: ['latin'] });
  5. const mono = Geist_Mono({ variable: '--font-geist-mono', subsets: ['latin'] });
  6. export const metadata: Metadata = {
  7. title: '术核 AI · 后端工程课件',
  8. description:
  9. '从 API 服务、数据库、异步任务和 Redis 到 Docker、Linux 部署与线上排障的生产系统实战课件。',
  10. icons: { icon: '/brand/shuh-favicon.ico' },
  11. };
  12. export default function RootLayout({
  13. children,
  14. }: Readonly<{ children: React.ReactNode }>) {
  15. return (
  16. <html lang="zh-CN">
  17. <body className={`${sans.variable} ${mono.variable}`}>{children}</body>
  18. </html>
  19. );
  20. }