Files
www_threefold_io/src/pages/Projects.vue
2020-11-11 11:16:38 +02:00

60 lines
1.1 KiB
Vue

<template>
<Layout>
<div class="container sm:pxi-0 mx-auto overflow-x-hidden">
<div class="flex flex-wrap with-large pt-8 pb-8 mx-4 sm:-mx-4">
<PostListItem v-for="edge in $page.entries.edges" :key="edge.node.id" :record="edge.node" />
</div>
</div>
</Layout>
</template>
<page-query>
query($page:Int) {
entries: allProject(perPage: 40, page: $page) @paginate {
totalCount
pageInfo {
totalPages
currentPage
}
edges {
node {
title
members
rank
linkedin
startDate : startdate(format:"MM YYYY")
humanTime : created(format:"DD MMMM YYYY")
datetime : created(format:"ddd MMM DD YYYY hh:mm:ss zZ")
status
excerpt
image(width:800)
path
timeToRead
author {
id
image(width:64, height:64, fit:inside)
path
}
}
}
}
}
</page-query>
<script>
import PostListItem from '~/components/PostListItem.vue';
export default {
metaInfo: {
title: "Projects"
},
components: {
PostListItem
}
};
</script>