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
+5 -2
View File
@@ -1,7 +1,7 @@
<script setup lang="ts">
import type { Article } from '@interfaces'
import { ref, onBeforeMount } from 'vue'
import { loadArticle } from '@lib/articles'
import { ref, onBeforeMount, onUpdated, onMounted } from 'vue'
import { loadArticle, updateDynamicContent } from '@lib/articles'
import { useRoute, onBeforeRouteUpdate, type RouteLocation } from 'vue-router'
import NotFoundView from './NotFoundView.vue'
import { simpleDateFormat } from '@lib/dates'
@@ -20,10 +20,13 @@ async function loadPage(target: RouteLocation) {
window.document.title =
stripHTML(TITLE) + ' — ' + stripHTML(article.value?.metadata.title ?? 'Not Found')
loading.value = false
await updateDynamicContent()
}
onBeforeMount(() => loadPage(route))
onBeforeRouteUpdate(loadPage)
onMounted(updateDynamicContent)
onUpdated(updateDynamicContent)
</script>
<template>