Merge pull request #2219 from tangly1024/fix/globalhead-site-title

fix global head title
This commit is contained in:
tangly1024
2024-03-25 12:17:50 +08:00
committed by GitHub

View File

@@ -118,7 +118,7 @@ const getSEOMeta = (props, router, global) => {
}
case '/category/[category]':
return {
title: `${category} | ${locale.COMMON.CATEGORY} | ${siteInfo?.title} || ''}`,
title: `${category} | ${locale.COMMON.CATEGORY} | ${siteInfo?.title}`,
description: `${siteInfo?.description}`,
slug: 'category/' + category,
image: `${siteInfo?.pageCover}`,
@@ -126,7 +126,7 @@ const getSEOMeta = (props, router, global) => {
}
case '/category/[category]/page/[page]':
return {
title: `${category} | ${locale.COMMON.CATEGORY} | ${siteInfo?.title} || ''}`,
title: `${category} | ${locale.COMMON.CATEGORY} | ${siteInfo?.title}`,
description: `${siteInfo?.description}`,
slug: 'category/' + category,
image: `${siteInfo?.pageCover}`,