This commit is contained in:
Kristian Polso 2018-05-04 14:10:57 +03:00
commit a80c6950bc
4 changed files with 35 additions and 1 deletions
.vuepress/components

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