Grzegorz Leoniec 98df6ed1f5 fixed spelling
2018-10-16 09:44:42 +02:00

57 lines
1.2 KiB
Vue

<template>
<div>
<no-ssr>
<ds-flex gutter="small">
<ds-flex-item>
<transition
name="slide-up"
appear>
<nuxt-child />
</transition>
</ds-flex-item>
<ds-flex-item :width="{ base: '200px' }">
<ds-menu
:routes="routes" />
</ds-flex-item>
</ds-flex>
</no-ssr>
</div>
</template>
<script>
export default {
data() {
return {
routes: [
{
name: 'Post',
path: `/post/${this.$route.params.slug}`,
children: [
{
name: 'Kommentare',
path: `/post/${this.$route.params.slug}#comments`
},
{
name: 'Miteinander reden',
path: `/post/${this.$route.params.slug}#lets-talk`
},
{
name: 'Versus',
path: `/post/${this.$route.params.slug}#versus`
}
]
},
{
name: 'Mehr Info',
path: `/post/${this.$route.params.slug}/more-info`
},
{
name: 'Aktiv werden',
path: `/post/${this.$route.params.slug}/take-action`
}
]
}
}
}
</script>