"- Nextra" automatically added to the page title? #2831
-
Hi! First, thank you very much for this great project. I noticed that " - Nextra" is automatically added to my page title. Is there a way to avoid that? Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
caffeine-addictt
Apr 9, 2024
Replies: 2 comments 2 replies
-
What does your If it looks something like this, consider removing the "- Nextra" import type { DocsThemeConfig } from 'nextra-theme-docs'
const config: DocsThemeConfig = {
...,
useNextSeoProps() {
const { asPath } = useRouter()
if (asPath !== '/') {
return {
titleTemplate: '%s – Nextra'
}
}
},
...
}
export defualt config |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
nshiab
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What does your
theme.config.tsx
look like?If it looks something like this, consider removing the "- Nextra"