feat: about page and better config

This commit is contained in:
2026-04-26 22:35:14 +02:00
parent a5b24dc9bf
commit 722548118a
14 changed files with 80 additions and 49 deletions
+28
View File
@@ -0,0 +1,28 @@
<script setup lang="ts">
import { ABOUT_LINK, 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'
const html = ref<string>('')
onBeforeMount(async () => {
window.document.title = stripHTML(TITLE) + ' — ' + stripHTML(ABOUT_LINK)
html.value = (await import('@articles/about.md')).html
await updateDynamicContent()
})
onMounted(updateDynamicContent)
onUpdated(updateDynamicContent)
</script>
<template>
<main class="article">
<NavBar />
<div v-html="html"></div>
<PageFooter />
</main>
</template>