Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit 73e1b3e

Browse files
committed
chore(SEO): global key words adjust
1 parent 4c9cdb6 commit 73e1b3e

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

utils/seo.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ import { ROUTE, THREAD } from '@/constant'
55

66
import { plural } from './helper'
77

8+
const SLOGAN =
9+
'小众开发者社区,专注小众编程语言,框架以及各种奇奇怪怪话题的讨论与分享。'
10+
811
type TSEO = {
912
url: string
1013
title: string
@@ -22,16 +25,16 @@ export const communitySEO = (community: TCommunity, thread: TThread): TSEO => {
2225

2326
return {
2427
url: `${SITE_URL}/${raw}/${plural(thread)}`,
25-
title: raw === 'home' ? 'CoderPlanets' : `${title} | 中文社区`,
26-
description: `${desc}`,
28+
title: raw === 'home' ? 'CoderPlanets' : `${title} 中文社区`,
29+
description: raw === 'home' ? SLOGAN : `${desc}`,
2730
}
2831
}
2932

3033
export const exploreSEO = (): TSEO => {
3134
return {
3235
url: `${SITE_URL}/${ROUTE.EXPLORE}`,
33-
title: '社区索引',
34-
description: 'coderplanets 子社区索引',
36+
title: 'CoderPlanets',
37+
description: SLOGAN,
3538
}
3639
}
3740

0 commit comments

Comments
 (0)