Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minor fixes #40

Merged
merged 3 commits into from
Nov 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down
3 changes: 1 addition & 2 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
const nextConfig = {
i18n: {
locales: ['en', 'fa'],
defaultLocale: 'fa',
localeDetection: false
defaultLocale: 'fa'
},
reactStrictMode: true,
};
Expand Down
7 changes: 7 additions & 0 deletions pages/_app.jsx
Original file line number Diff line number Diff line change
@@ -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>;
}
1 change: 1 addition & 0 deletions pages/_document.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 />
Expand Down