Merge pull request #40 from ashkan-o/main

minor fixes
This commit is contained in:
Sohrab Behdani 2024-11-23 23:49:12 +03:30 committed by GitHub
commit 9e077ec46b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 10 additions and 3 deletions

View file

@ -23,7 +23,7 @@ export function Footer() {
<Link href="https://bsky.app/profile/parchlinux.com">
<SiBluesky className="w-4 h-4" />
</Link>
<Link href="https://ieji.de/@parchlinux">
<Link href="https://ieji.de/@parchlinux" rel="me">
<SiMastodon className="w-4 h-4" />
</Link>
<Link href="https://x.com/parchgnulinux">

View file

@ -2,8 +2,7 @@
const nextConfig = {
i18n: {
locales: ['en', 'fa'],
defaultLocale: 'fa',
localeDetection: false
defaultLocale: 'fa'
},
reactStrictMode: true,
};

View file

@ -1,11 +1,18 @@
import BaseLayout from "@/components/Base";
import "@/styles/globals.css";
import { useTranslation } from "@/utils/translation";
import { ThemeProvider } from "next-themes";
import Head from "next/head";
export default function App({ Component, pageProps }) {
const { t } = useTranslation()
return <ThemeProvider attribute="class">
<BaseLayout>
<Component {...pageProps} />
<Head>
<title>{t('home.title')}</title>
</Head>
</BaseLayout>
</ThemeProvider>;
}

View file

@ -8,6 +8,7 @@ export default function Document() {
href="https://fonts.googleapis.com/css2?family=Vazirmatn&display=swap"
rel="stylesheet"
/>
<link rel="shortcut icon" href="/parch.svg" type="image/svg+xml" />
</Head>
<body>
<Main />