Merge pull request #6653 from menloresearch/fix/blog-titles-remove-jan-prefix

fix: remove Jan prefix from blog post titles for better SEO
This commit is contained in:
Faisal Amir 2025-09-30 10:31:05 +07:00 committed by GitHub
commit ccf378f2c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -107,14 +107,15 @@ const config: DocsThemeConfig = {
head: function useHead() {
const { title, frontMatter } = useConfig()
const { asPath } = useRouter()
const titleTemplate =
(asPath.includes('/desktop')
const titleTemplate = asPath.includes('/post/')
? (frontMatter?.title || title)
: (asPath.includes('/desktop')
? 'Jan Desktop'
: asPath.includes('/server')
? 'Jan Server'
: 'Jan') +
' - ' +
(frontMatter?.title || title)
' - ' +
(frontMatter?.title || title)
return (
<Fragment>