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

#1 调整目录结构

上级 f092ad84
......@@ -65,7 +65,17 @@ module.exports = {
"meta",
{ 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: {
// '/en/': {
......@@ -356,7 +366,7 @@ module.exports = {
nav: [
{
text: "Spring",
link: '/spring/why-spring.html'
link: '/why-spring.html'
},
{
text: "Spring Boot",
......@@ -924,7 +934,7 @@ module.exports = {
}
],
// fallback
"/spring/": [
"/": [
{
title: "Spring 文档", // 必要的
// path: '/', // 可选的, 标题的跳转链接,应为绝对路径且必须存在
......@@ -937,9 +947,9 @@ module.exports = {
sidebarDepth: 2,
collapsable: false,
children: [
"/spring/why-spring.md",
"/spring/introducing-spring-boot.md",
"/spring/quickstart.md"
"why-spring.md",
"introducing-spring-boot.md",
"quickstart.md"
],
initialOpenGroupIndex: 0 // 可选的, 默认值是 0
},
......@@ -948,9 +958,9 @@ module.exports = {
sidebarDepth: 2,
collapsable: false,
children: [
"/spring/system-requirements.md",
"/spring/installing.md",
"/spring/initializr.md"
"system-requirements.md",
"installing.md",
"initializr.md"
],
initialOpenGroupIndex: 0 // 可选的, 默认值是 0
},
......@@ -959,8 +969,8 @@ module.exports = {
sidebarDepth: 2,
collapsable: false,
children: [
"/spring/vscode_java.md",
"/spring/intellij_idea.md"
"vscode_java.md",
"intellij_idea.md"
],
initialOpenGroupIndex: 0 // 可选的, 默认值是 0
},
......@@ -969,9 +979,9 @@ module.exports = {
sidebarDepth: 2,
collapsable: false,
children: [
"/spring/getting-started_first-application.md",
"/spring/rest-service.md",
"/spring/consuming-rest.md"
"getting-started_first-application.md",
"rest-service.md",
"consuming-rest.md"
],
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 {
};
</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">
.home {
padding: $navbarHeight 2rem 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册