feat: about page and better config

This commit is contained in:
2026-04-26 22:35:24 +02:00
parent a5b24dc9bf
commit 722548118a
14 changed files with 80 additions and 49 deletions
+5 -2
View File
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref, onBeforeMount } from 'vue'
import { listArticles } from '@lib/articles'
import { ref, onBeforeMount, onUpdated, onMounted } from 'vue'
import { listArticles, updateDynamicContent } from '@lib/articles'
import type { ArticleMetadata } from '@interfaces'
import { simpleDateFormat } from '@lib/dates'
import { HOME_COUNT, PROD, PUBLISHED_ON, TITLE } from '@lib/config'
@@ -16,7 +16,10 @@ onBeforeMount(async () => {
.slice(0, HOME_COUNT)
articles.value.splice(0, articles.value.length, ...newArticles)
window.document.title = stripHTML(TITLE) + ' — Home'
await updateDynamicContent()
})
onMounted(updateDynamicContent)
onUpdated(updateDynamicContent)
</script>
<template>