diff --git a/components/Nav/PrevNext.vue b/components/Nav/PrevNext.vue new file mode 100644 index 0000000000000000000000000000000000000000..f35a9450a6441368d0903a7f5e210e9bf47a60c2 --- /dev/null +++ b/components/Nav/PrevNext.vue @@ -0,0 +1,13 @@ +<script setup lang="ts"> +const { surround } = useContent(); + +</script> +<template> + <v-row justify="space-between"> + <v-col v-for="(surroundPage, i) in surround" :key="surroundPage?._id" :cols="mobile ? '12' : 'auto'"> + <v-btn v-if="surroundPage" :prepend-icon="i === 0 ? 'mdi-arrow-left' : undefined" + :append-icon="i === 1 ? 'mdi-arrow-right' : undefined" :block="mobile ? true : false" variant="outlined" + color="primary" :to="surroundPage?._path">{{ surroundPage?.title }}</v-btn> + </v-col> + </v-row> +</template> \ No newline at end of file diff --git a/content/3.defense-systems/0.index.md b/content/3.defense-systems/0.index.md index 9d3a66933ef6eb9c04cc04158fcd45f3426e14bc..798b183dc630c17d181d793ad42a4f615df53332 100644 --- a/content/3.defense-systems/0.index.md +++ b/content/3.defense-systems/0.index.md @@ -1,6 +1,6 @@ --- title: List of defense systems -layout: article +layout: article-no-toc --- diff --git a/content/4.refseq.md b/content/4.refseq.md index 19e7ab8ba9bbf5e6b3fbfa7a09511d7e42f1d25e..ec34a0f081673e2f69e2ffc6eb7529649ddfc569 100644 --- a/content/4.refseq.md +++ b/content/4.refseq.md @@ -1,4 +1,4 @@ --- -layout: article +layout: article-no-toc navigation: false --- \ No newline at end of file diff --git a/layouts/article-no-toc.vue b/layouts/article-no-toc.vue new file mode 100644 index 0000000000000000000000000000000000000000..a7a46c5f3424df7bc558c416c4f893d66f42d098 --- /dev/null +++ b/layouts/article-no-toc.vue @@ -0,0 +1,30 @@ +<script setup lang="ts"> +const { page } = useContent(); +// import { useCustomTheme } from '~/composables/useCustomTheme' +import { useDisplay } from 'vuetify' + +// const { isDark } = useCustomTheme() +const { mobile } = useDisplay() + + +</script> +<template> + <VApp> + <v-main style="min-height: 300px"> + <v-container> + <slot /> + <EditGitlab /> + <NavPrevNext /> + </v-container> + <Footer></Footer> + </v-main> + <NavNavbar /> + <nav-back-to-top /> + </VApp> +</template> + +<style scoped> +#app-footer { + border-top: 1px solid rgba(var(--v-border-color), var(--v-border-opacity)); +} +</style> diff --git a/layouts/article.vue b/layouts/article.vue index cda9f07d6383271d6ca446c9708988e2a71e0e9e..1480e3f290ac696aaf3d64fc10d901dc12c05900 100644 --- a/layouts/article.vue +++ b/layouts/article.vue @@ -24,14 +24,7 @@ console.log(next) <!-- </v-card-text> </v-card> --> <EditGitlab /> - <v-row justify="space-between"> - <v-col v-for="(surroundPage, i) in [prev, next]" :key="surroundPage?._id" :cols="mobile ? '12' : 'auto'"> - <v-btn v-if="surroundPage" :prepend-icon="i === 0 ? 'mdi-arrow-left' : undefined" - :append-icon="i === 1 ? 'mdi-arrow-right' : undefined" :block="mobile ? true : false" variant="outlined" - color="primary" :to="surroundPage?._path">{{ surroundPage?.title }}</v-btn> - </v-col> - </v-row> - + <NavPrevNext /> </v-container> <Footer></Footer> </v-main> diff --git a/pages/defense-systems.vue b/pages/defense-systems.vue index 9ca3390ec2363893cff87a0daba42cc6c2cc71f4..2ad4c2e6db1bbcab4ce340977a4ed2ddfc74792b 100644 --- a/pages/defense-systems.vue +++ b/pages/defense-systems.vue @@ -53,11 +53,6 @@ const systems = computed(() => { </script> <template> <v-card flat color="transparent"> - <v-card-title>List systems</v-card-title> - <ListSystems - :headers="headers" - :systems="systems" - :height="height - 405" - ></ListSystems> + <ListSystems :headers="headers" :systems="systems" :height="height - 405"></ListSystems> </v-card> </template> \ No newline at end of file