Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat:#42 修复SEO关键字 #50

Merged
merged 2 commits into from
Sep 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/common/siteconfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default class SiteConfig {
this.webtheme = "default"
this.webname = "浅海拾贝"
this.webslogen = "寻找未知的技术拼图"
this.keywords = "软件架构服务端开发JavaSpringDubboZookeeper微服务"
this.keywords = "软件架构,服务端开发,Java,Spring,Dubbo,Zookeeper,微服务"
this.description = "浅海拾贝是关注与分享互联网及服务端开发技术的个人博客,致力于Java后端开发及服务端技术、软件架构、微服务技术分享。同时也记录个人的一路点滴,所蕴含的包括前端、后端、数据库等知识,欢迎您关注我。"
this.beianinfo = "粤ICP备18023717号-1"
}
Expand Down
2 changes: 1 addition & 1 deletion pages/post/[slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ export const getServerSideProps: GetServerSideProps<Props> = async (context) =>
cfg.webslogen = cfg.webname
cfg.webname = post.title
if (post.mt_keywords) {
cfg.keywords = post.mt_keywords.split(",").join(" ")
cfg.keywords = post.mt_keywords.split(",").join(",")
}
if (post.shortDesc) {
cfg.description = post.shortDesc
Expand Down