feat: navbar

This commit is contained in:
2026-04-26 18:38:49 +02:00
parent 21e1469b51
commit 748f52241f
9 changed files with 30 additions and 13 deletions
+3 -2
View File
@@ -6,6 +6,7 @@ import { simpleDateFormat } from '@lib/dates'
import { TITLE } from '@lib/meta'
import PageFooter from '@components/PageFooter.vue'
import { stripHTML } from '@/lib/strings'
import NavBar from '@/components/NavBar.vue'
const articles = ref<ArticleMetadata[]>([])
@@ -17,8 +18,8 @@ onBeforeMount(async () => {
</script>
<template>
<main>
<h1 class="title" v-html="TITLE"></h1>
<main class="home">
<NavBar />
<template v-for="(metadata, index) in articles" v-bind:key="index">
<div v-if="!metadata.draft && metadata.path" class="article-item">
<RouterLink :to="metadata.path">