mirror of
https://github.com/muerwre/muerwre.github.io.git
synced 2025-04-24 18:36:41 +07:00
initial
This commit is contained in:
commit
5104c2518b
34 changed files with 6844 additions and 0 deletions
30
pages/[...slug].vue
Normal file
30
pages/[...slug].vue
Normal file
|
@ -0,0 +1,30 @@
|
|||
<template>
|
||||
<main>
|
||||
<ContentDoc>
|
||||
<template v-slot="{ doc }">
|
||||
<h1>{{ doc.title }}</h1>
|
||||
<article>
|
||||
<ContentRenderer :value="doc" />
|
||||
</article>
|
||||
</template>
|
||||
|
||||
<template v-slot:not-found="{ props: { path } }">
|
||||
<HomeReference :url="path" />
|
||||
</template>
|
||||
</ContentDoc>
|
||||
</main>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
useHead({
|
||||
titleTemplate: (titleChunk) => {
|
||||
return titleChunk ? `${titleChunk} • Obsidian Garden` : "Obsidian Garden";
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
<script lang="ts">
|
||||
export default {
|
||||
scrollToTop: true,
|
||||
};
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue