add meta for docs

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-03-12 09:40:03 +01:00
parent 48edf599fb
commit 242dc2cf83
4 changed files with 10 additions and 9 deletions

View File

@@ -14,12 +14,11 @@ export default {
<strong style={{ marginLeft: '8px' }}>openpanel</strong>
</>
),
head: (props) => {
head: () => {
const router = useRouter();
const config = useConfig();
const title = config.title;
const description =
config.description || 'An open-source alternative to Mixpanel';
const description = 'An open-source alternative to Mixpanel';
const domain = 'https://docs.openpanel.dev';
const canonicalUrl =
`${domain}${router.asPath === '/' ? '' : router.asPath}`.split('?')[0];
@@ -39,7 +38,10 @@ export default {
<meta name="og:url" content={canonicalUrl} />
<meta name="og:title" content={`${title} - Openpanel Docs`} />
<meta property="og:description" content={description} />
<meta name="og:image" content={'https://openpanel.dev/ogimage.png'} />
<meta
name="og:image"
content={'https://docs.openpanel.dev/ogimage.png'}
/>
<meta name="title" content={title} />
<meta name="description" content={description} />
</>
@@ -53,11 +55,6 @@ export default {
},
docsRepositoryBase:
'https://github.com/openpanel-dev/openpanel/blob/main/apps/docs',
useNextSeoProps() {
return {
titleTemplate: '%s - Openpanel',
};
},
footer: {
text: (
<span>