feat: updated on and better vue layout

This commit is contained in:
2026-04-27 11:29:33 +02:00
parent 39cf54624a
commit 89b83e3e43
15 changed files with 81 additions and 69 deletions
+4 -10
View File
@@ -1,18 +1,16 @@
<script setup lang="ts">
import { TITLE } from '@lib/config'
import { stripHTML } from '@lib/strings'
import PageFooter from '@components/PageFooter.vue'
import { onBeforeMount, onMounted, onUpdated, ref } from 'vue'
import NavBar from '@components/NavBar.vue'
import { updateDynamicContent } from '@/lib/articles'
import { updateDynamicContent } from '@lib/articles'
const loading = ref<boolean>(true)
const html = ref<string>('')
onBeforeMount(async () => {
window.document.title = stripHTML(TITLE)
html.value = (await import('@articles/not_found.md')).html
loading.value = false
await updateDynamicContent()
})
onMounted(updateDynamicContent)
@@ -20,9 +18,5 @@ onUpdated(updateDynamicContent)
</script>
<template>
<main class="article">
<NavBar />
<div v-html="html"></div>
<PageFooter />
</main>
<div v-if="!loading" class="article" v-html="html"></div>
</template>