From 8fd55726ebf83024360a2be19d5155325849fa61 Mon Sep 17 00:00:00 2001 From: Remi PLANEL <rplanel@pasteur.fr> Date: Tue, 5 Dec 2023 15:24:45 +0100 Subject: [PATCH] refeseq and structure navigation true but filtered from it --- components/Nav/Drawer.vue | 14 +++++++------- content/4.refseq.md | 4 ---- content/5.predicted-structure.md | 2 -- layouts/db.vue | 2 -- pages/[...slug].vue | 8 +++----- 5 files changed, 10 insertions(+), 20 deletions(-) diff --git a/components/Nav/Drawer.vue b/components/Nav/Drawer.vue index da27d8d1..56c60e84 100644 --- a/components/Nav/Drawer.vue +++ b/components/Nav/Drawer.vue @@ -13,18 +13,18 @@ import { useDisplay, useTheme } from "vuetify"; const { navigation } = useContent(); // const drawer = ref(true); -// const computedNavigation = computed(() => { -// return navigation.value -// .filter(({ _path }) => { -// return _path !== "/refseq"; -// }) +const computedNavigation = computed(() => { + return navigation.value + .filter(({ _path }) => { + return _path !== "/refseq" || _path !== "/predicted-structure"; + }) -// }); +}); </script> <template> <v-navigation-drawer :model-value="drawer" :border="1" color="background"> <v-list nav density="compact" :lines="false"> - <NavNavigation :navigation="navigation" /> + <NavNavigation :navigation="computedNavigation" /> </v-list> </v-navigation-drawer> </template> \ No newline at end of file diff --git a/content/4.refseq.md b/content/4.refseq.md index f55ac77a..58938a5d 100644 --- a/content/4.refseq.md +++ b/content/4.refseq.md @@ -1,12 +1,8 @@ --- layout: db -navigation: false --- - - - ::refseq-db :: diff --git a/content/5.predicted-structure.md b/content/5.predicted-structure.md index 859a7b74..d0350a3f 100644 --- a/content/5.predicted-structure.md +++ b/content/5.predicted-structure.md @@ -1,9 +1,7 @@ --- layout: db -navigation: false --- - ::structure-db :: \ No newline at end of file diff --git a/layouts/db.vue b/layouts/db.vue index 55982ec2..7e7368c9 100644 --- a/layouts/db.vue +++ b/layouts/db.vue @@ -6,8 +6,6 @@ const facetStore = useFacetsStore() </script> <template> <LayoutWrapper :fluid="true" :toc="false" :edit="false" :nav-drawer="false"> - - <slot /> </LayoutWrapper> </template> diff --git a/pages/[...slug].vue b/pages/[...slug].vue index 7fa8469b..6afff5a4 100644 --- a/pages/[...slug].vue +++ b/pages/[...slug].vue @@ -1,8 +1,6 @@ <template> - - <v-card-text> - <ContentDoc /> - </v-card-text> - + <v-card-text> + <ContentDoc /> + </v-card-text> </template> -- GitLab