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:
commit
ccf378f2c6
@ -107,14 +107,15 @@ const config: DocsThemeConfig = {
|
|||||||
head: function useHead() {
|
head: function useHead() {
|
||||||
const { title, frontMatter } = useConfig()
|
const { title, frontMatter } = useConfig()
|
||||||
const { asPath } = useRouter()
|
const { asPath } = useRouter()
|
||||||
const titleTemplate =
|
const titleTemplate = asPath.includes('/post/')
|
||||||
(asPath.includes('/desktop')
|
? (frontMatter?.title || title)
|
||||||
|
: (asPath.includes('/desktop')
|
||||||
? 'Jan Desktop'
|
? 'Jan Desktop'
|
||||||
: asPath.includes('/server')
|
: asPath.includes('/server')
|
||||||
? 'Jan Server'
|
? 'Jan Server'
|
||||||
: 'Jan') +
|
: 'Jan') +
|
||||||
' - ' +
|
' - ' +
|
||||||
(frontMatter?.title || title)
|
(frontMatter?.title || title)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user