1
0
Fork 0
mirror of https://github.com/em-squared/5e-drs.git synced 2025-10-31 05:24:20 +00:00

search autocomplete

This commit is contained in:
Maxime Moraine 2020-03-28 10:42:54 +01:00
parent d47ad5e88d
commit eccc40a123
15 changed files with 1094 additions and 9924 deletions

View file

@ -2,10 +2,7 @@
<div>
<Home v-if="$page.frontmatter.home" />
<Page
v-else
:sidebar-items="sidebarItems"
>
<Page v-else>
<template #top>
<slot name="page-top" />
</template>
@ -17,29 +14,14 @@
</template>
<script>
import Home from '@theme/components/Home.vue'
import Page from '@theme/components/Page.vue'
import { resolveSidebarItems } from '../util'
export default {
name: 'Layout',
components: {
Home,
Page
},
computed: {
sidebarItems () {
return resolveSidebarItems(
this.$page,
this.$page.regularPath,
this.$site,
this.$localePath
)
},
}
}
</script>