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

#1 SEO:add sitemap config

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