feat: navbar
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user