lbry.tech/content/.vuepress/components/Sitemap.vue

26 lines
509 B
Vue
Raw Normal View History

2018-05-04 13:10:57 +02:00
<template>
<ul id="sitemap">
<li v-for="route in routes">
<router-link v-bind:to="route.path" :title="`Visit lbry.tech${route.path}`">{{ route.path }}</router-link>
2018-05-04 13:10:57 +02:00
</li>
</ul>
</template>
<script>
export default {
data: function () {
const routes = [];
this.$router.options.routes.forEach(item => {
if (item.path !== "/" && item.path !== "*") routes.push(item);
});
return {
routes: routes
2018-05-04 13:10:57 +02:00
}
},
name: "Sitemap"
};
</script>