Merge branch 'master' into redesign
This commit is contained in:
commit
e5e352097e
4 changed files with 37 additions and 1 deletions
24
.vuepress/components/Sitemap.vue
Normal file
24
.vuepress/components/Sitemap.vue
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
<template>
|
||||||
|
<ul id="sitemap">
|
||||||
|
<li v-for="route in routes">
|
||||||
|
<router-link v-bind:to="route.path">{{ route.path }}</router-link>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data: function() {
|
||||||
|
var routes = [];
|
||||||
|
this.$router.options.routes.forEach(function(item) {
|
||||||
|
if(item.path != "/" && item.path != "*") {
|
||||||
|
routes.push(item);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return {
|
||||||
|
routes: routes
|
||||||
|
}
|
||||||
|
},
|
||||||
|
name: 'Sitemap'
|
||||||
|
}
|
||||||
|
</script>
|
|
@ -1 +0,0 @@
|
||||||
|
|
|
@ -119,6 +119,9 @@
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
<edit-link :path="this.$page.path"></edit-link>
|
||||||
|
<router-link to="/sitemap.html">Sitemap</router-link>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template v-else-if="$page.path == '/whitepaper.html'">
|
<template v-else-if="$page.path == '/whitepaper.html'">
|
||||||
|
@ -132,6 +135,9 @@
|
||||||
<Content custom></Content>
|
<Content custom></Content>
|
||||||
<edit-link :path="this.$page.path"></edit-link>
|
<edit-link :path="this.$page.path"></edit-link>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<edit-link :path="this.$page.path"></edit-link>
|
||||||
|
<router-link to="/sitemap.html">Sitemap</router-link>
|
||||||
</section>
|
</section>
|
||||||
</template>
|
</template>
|
||||||
</v-content>
|
</v-content>
|
||||||
|
|
7
sitemap.md
Normal file
7
sitemap.md
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
title: Sitemap
|
||||||
|
---
|
||||||
|
|
||||||
|
# Sitemap
|
||||||
|
|
||||||
|
<Sitemap></Sitemap>
|
Loading…
Reference in a new issue