提交 967b943d 编写于 作者: 茶陵後's avatar 茶陵後 👍

#1 SEO:add sitemap config

...@@ -11,7 +11,7 @@ const autometa_options = { ...@@ -11,7 +11,7 @@ const autometa_options = {
module.exports = { module.exports = {
title: "Spring 中文文档社区", title: "Spring 中文文档社区",
base: "/spring-docs/", base: "/spring-docs/",
head: [ head: [
[ [
"link", "link",
...@@ -80,15 +80,21 @@ module.exports = { ...@@ -80,15 +80,21 @@ module.exports = {
} }
}, },
plugins: [ plugins: [
["autometa", autometa_options] ["autometa", autometa_options],
['sitemap', {
hostname: host_url,
// 排除无实际内容的页面
exclude: ["/404.html"]
}
]
], ],
theme: path.resolve(__dirname, "./themes/theme-gitcode/index.js"), theme: path.resolve(__dirname, "./themes/theme-gitcode/index.js"),
themeConfig: { themeConfig: {
repo: "https://gitcode.net/dev-cloud/spring", repo: "https://gitcode.net/dev-cloud/spring-docs",
repoLabel: "GitCode", repoLabel: "GitCode",
docsRepo: "https://gitcode.net/dev-cloud/spring/", docsRepo: "https://gitcode.net/dev-cloud/spring-docs/",
docsDir: "docs", docsDir: "docs",
docsBranch: 'pages', docsBranch: "master",
editLinks: true, editLinks: true,
editLinkText: "帮助我们改善此页面!", editLinkText: "帮助我们改善此页面!",
lastUpdated: "Last Updated", lastUpdated: "Last Updated",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册