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

#1 调整目录结构

上级 f092ad84
...@@ -65,7 +65,17 @@ module.exports = { ...@@ -65,7 +65,17 @@ module.exports = {
"meta", "meta",
{ name: "viewport", content: "width=device-width, initial-scale=1" } { name: "viewport", content: "width=device-width, initial-scale=1" }
], ],
["meta", { "http-equiv": "X-UA-Compatible", content: "IE=edge" }] ["meta", { "http-equiv": "X-UA-Compatible", content: "IE=edge" }],
['script', {},`
<script>
var _hmt = _hmt || [];
(function () {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?8eefd6b163dcb3f5762af6b0825e2dd1";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
`]
], ],
locales: { locales: {
// '/en/': { // '/en/': {
...@@ -356,7 +366,7 @@ module.exports = { ...@@ -356,7 +366,7 @@ module.exports = {
nav: [ nav: [
{ {
text: "Spring", text: "Spring",
link: '/spring/why-spring.html' link: '/why-spring.html'
}, },
{ {
text: "Spring Boot", text: "Spring Boot",
...@@ -924,7 +934,7 @@ module.exports = { ...@@ -924,7 +934,7 @@ module.exports = {
} }
], ],
// fallback // fallback
"/spring/": [ "/": [
{ {
title: "Spring 文档", // 必要的 title: "Spring 文档", // 必要的
// path: '/', // 可选的, 标题的跳转链接,应为绝对路径且必须存在 // path: '/', // 可选的, 标题的跳转链接,应为绝对路径且必须存在
...@@ -937,9 +947,9 @@ module.exports = { ...@@ -937,9 +947,9 @@ module.exports = {
sidebarDepth: 2, sidebarDepth: 2,
collapsable: false, collapsable: false,
children: [ children: [
"/spring/why-spring.md", "why-spring.md",
"/spring/introducing-spring-boot.md", "introducing-spring-boot.md",
"/spring/quickstart.md" "quickstart.md"
], ],
initialOpenGroupIndex: 0 // 可选的, 默认值是 0 initialOpenGroupIndex: 0 // 可选的, 默认值是 0
}, },
...@@ -948,9 +958,9 @@ module.exports = { ...@@ -948,9 +958,9 @@ module.exports = {
sidebarDepth: 2, sidebarDepth: 2,
collapsable: false, collapsable: false,
children: [ children: [
"/spring/system-requirements.md", "system-requirements.md",
"/spring/installing.md", "installing.md",
"/spring/initializr.md" "initializr.md"
], ],
initialOpenGroupIndex: 0 // 可选的, 默认值是 0 initialOpenGroupIndex: 0 // 可选的, 默认值是 0
}, },
...@@ -959,8 +969,8 @@ module.exports = { ...@@ -959,8 +969,8 @@ module.exports = {
sidebarDepth: 2, sidebarDepth: 2,
collapsable: false, collapsable: false,
children: [ children: [
"/spring/vscode_java.md", "vscode_java.md",
"/spring/intellij_idea.md" "intellij_idea.md"
], ],
initialOpenGroupIndex: 0 // 可选的, 默认值是 0 initialOpenGroupIndex: 0 // 可选的, 默认值是 0
}, },
...@@ -969,9 +979,9 @@ module.exports = { ...@@ -969,9 +979,9 @@ module.exports = {
sidebarDepth: 2, sidebarDepth: 2,
collapsable: false, collapsable: false,
children: [ children: [
"/spring/getting-started_first-application.md", "getting-started_first-application.md",
"/spring/rest-service.md", "rest-service.md",
"/spring/consuming-rest.md" "consuming-rest.md"
], ],
initialOpenGroupIndex: 0 // 可选的, 默认值是 0 initialOpenGroupIndex: 0 // 可选的, 默认值是 0
} }
......
export default ({ router }) => {
/**
* 路由切换事件处理
*/
router.beforeEach((to, from, next) => {
//触发百度的pv统计
if (typeof _hmt != "undefined") {
if (to.path) {
_hmt.push(["_trackPageview", to.fullPath]);
}
}
// continue
next();
});
};
\ No newline at end of file
...@@ -67,16 +67,6 @@ export default { ...@@ -67,16 +67,6 @@ export default {
}; };
</script> </script>
<script>
var _hmt = _hmt || [];
(function () {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?8eefd6b163dcb3f5762af6b0825e2dd1";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
<style lang="stylus"> <style lang="stylus">
.home { .home {
padding: $navbarHeight 2rem 0; padding: $navbarHeight 2rem 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册