import { useRouter } from 'next/router' import { useConfig } from 'nextra-theme-docs' const title = 'VideoLingo' export default { logo: {title}, project: { link: 'https://github.com/Huanshere/VideoLingo', }, footer: { text: {new Date().getFullYear()} © {title}., }, i18n: [ { locale: 'en-US', text: 'English' }, { locale: 'zh-CN', text: '中文' }, { locale: 'ja', text: '日本語' }, ], head: () => { const { asPath, defaultLocale, locale } = useRouter() const { frontMatter } = useConfig() const url = 'https://videolingo.io' + (defaultLocale === locale ? asPath : `/${locale}${asPath}`) return ( <> ) }, useNextSeoProps() { const { asPath } = useRouter() if (asPath !== '/') { return { titleTemplate: `%s | ${title}`, } } }, }