1
0
Fork 0
ryanmoon.com/components/index/Apps.vue

19 lines
487 B
Vue

<script setup>
const apps = await queryContent('projects')
.sort({ priority: 1 })
.where({ public: true })
.only(['slug', 'project', 'excerpt'])
.find()
</script>
<template>
<div class="projects">
<h3>Projects</h3>
<div class="card" v-for="app in apps" :key="app.slug">
<NuxtLink :to="'/projects/' + app.slug" class="title" >
<p>{{ app.project }}</p>
</NuxtLink>
<p class="desc">{{ app.excerpt }}</p>
</div>
</div>
</template>