feat(frontend/blog) font, lighthouse improve

This commit is contained in:
lumither committed 2024-05-09 22:35:01 +08:00
1 parent 7e0b015cbc
commit fd4bdb4a6f
4 files changed
+13 -6

No files matched your search

+1 -3
View File
@@ -1,11 +1,9 @@
import type { Metadata } from 'next';
import { Inter } from 'next/font/google';
import './globals.css';
import React from 'react';
import { ThemeProvider as NextThemesProvider } from 'next-themes';
import Navbar from '@/components/Navbar';
const inter = Inter({ subsets: [ 'latin' ] });
export const metadata: Metadata = {
title: 'Lumither\'s site',
@@ -19,7 +17,7 @@ export default function RootLayout({
}>) {
return (
<html lang="en" suppressHydrationWarning>
<body className={ inter.className }>
<body>
<NextThemesProvider attribute="class" defaultTheme="dark">
<Navbar />
{ children }