Merge branch 'master' into redesign

This commit is contained in:
netop:// ウェッブ 2018-05-06 09:32:38 -05:00 committed by GitHub
commit e5e352097e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 37 additions and 1 deletions

View 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>

View file

@ -1 +0,0 @@

View file

@ -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
View file

@ -0,0 +1,7 @@
---
title: Sitemap
---
# Sitemap
<Sitemap></Sitemap>