shack/pages/index/index.page.vue

21 lines
392 B
Vue
Raw Normal View History

<template>
<div class="content">
<ul class="posts nolist">
2023-06-03 21:32:50 +00:00
<li
v-for="post in posts"
:key="post.id"
>
<Post :post="post" />
</li>
2023-06-03 21:32:50 +00:00
</ul>
</div>
</template>
2023-06-03 21:32:50 +00:00
<script setup>
import { usePageContext } from '../../renderer/usePageContext';
import Post from '../../components/posts/post.vue';
2023-06-03 21:32:50 +00:00
const { pageData } = usePageContext();
const { posts } = pageData;
2023-06-03 21:32:50 +00:00
</script>