cours/docs/.vitepress/theme/layouts/PageLayout.vue

19 lines
324 B
Vue
Executable File

<script setup>
import DefaultTheme from "vitepress/theme";
const { Layout } = DefaultTheme;
import { useData } from "vitepress";
const { page } = useData();
</script>
<template>
<Layout>
<main role="main">
<h1>{{ page.title }}</h1>
<slot name="content" />
</main>
</Layout>
</template>
<style scoped></style>