mirror of
https://github.com/smyalygames/flightsim-on-linux.git
synced 2025-05-19 06:34:12 +02:00
47 lines
1.3 KiB
TypeScript
47 lines
1.3 KiB
TypeScript
import { useRouter } from 'next/router';
|
|
import { useConfig } from 'nextra-theme-docs';
|
|
|
|
export default {
|
|
project: {
|
|
link: 'https://github.com/smyalygames/flightsim-on-linux',
|
|
},
|
|
docsRepositoryBase:
|
|
'https://github.com/smyalygames/flightsim-on-linux/blob/main',
|
|
logo: <span>Flight Sim on Linux</span>,
|
|
useNextSeoProps() {
|
|
return {
|
|
titleTemplate: '%s - Flight Sim on Linux',
|
|
};
|
|
},
|
|
head: () => {
|
|
// TODO Figure out the reason for these ESLint errors
|
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
const { asPath, defaultLocale, locale } = useRouter();
|
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
const { frontMatter } = useConfig();
|
|
const url =
|
|
'https://www.flightsimonlinux.com' +
|
|
(defaultLocale === locale ? asPath : `/${locale}${asPath}`);
|
|
|
|
return (
|
|
<>
|
|
<meta property="og:url" content={url} />
|
|
<meta
|
|
property="og:title"
|
|
content={frontMatter.title || 'Flight Sim on Linux'}
|
|
/>
|
|
<meta
|
|
property="og:description"
|
|
content={
|
|
frontMatter.description ||
|
|
'Guides to running Flight Simulators on Linux'
|
|
}
|
|
/>
|
|
</>
|
|
);
|
|
},
|
|
footer: {
|
|
text: <span>© Anthony Berg {new Date().getFullYear()}</span>,
|
|
},
|
|
};
|