add: article view

View for blog articles, with date filter
This commit is contained in:
webfussel 2025-06-12 14:14:19 +02:00
parent 4104477533
commit 9abd595b49
3 changed files with 6 additions and 7 deletions

View file

@ -27,7 +27,7 @@
<script setup lang="ts">
const route = useRoute()
const { data: article } = await useAsyncData('article', () => queryCollection('blog').path(route.path).first())
const { data: article } = await useAsyncData('article', () => queryCollection('blog').path(route.path).where('date', '<', tomorrow(new Date())).first())
</script>
<style scoped>