bsc

Comprehensive codebase and coursework for the 4-year B.Sc. Computer Science Honours degree (WBSU)

git clone https://github.com/notamitgamer/bsc.git
· rebuilt hourlyOpen on GitHub
root / docs / .vitepress / theme / components / HomeFooterGate.vue

HomeFooterGate.vue (642B)


      1 <script setup>
      2 import { useData } from 'vitepress'
      3 import DocFooterExtra from './DocFooterExtra.vue'
      4 
      5 // 'layout-bottom' fires on every page type, after everything (including the
      6 // home page's markdown body below the features array — see VPHome.vue,
      7 // which puts <Content /> after 'home-features-after' with no slot below it).
      8 // Doc pages already get the footer correctly via 'doc-after', so only
      9 // render it here when this page is actually using the home layout —
     10 // otherwise doc pages would get it twice.
     11 const { frontmatter } = useData()
     12 </script>
     13 
     14 <template>
     15   <DocFooterExtra v-if="frontmatter.layout === 'home'" />
     16 </template>