Skip to content

"- Nextra" automatically added to the page title? #2831

Answered by caffeine-addictt
nshiab asked this question in Q&A
Discussion options

You must be logged in to vote

What does your theme.config.tsx look like?

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

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nshiab
Comment options

Answer selected by nshiab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants