This commit is contained in:
2020-11-08 09:12:17 +01:00
parent 598ea0cc25
commit 50527d0370
93 changed files with 14163 additions and 19 deletions

62
src/pages/Index.vue Normal file
View File

@@ -0,0 +1,62 @@
<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: allBlog(perPage: 9, page: $page) @paginate {
totalCount
pageInfo {
totalPages
currentPage
}
edges {
node {
name
title
team
rank
excerpt
image(width:800)
path
timeToRead
humanTime : created(format:"DD MMM YYYY")
datetime : created
category {
id
title
}
author {
id
name
image(width:64, height:64, fit:inside)
path
}
}
}
}
}
</page-query>
<script>
import PostListItem from '~/components/PostListItem.vue';
export default {
metaInfo: {
title: "Hello, world!"
},
components: {
PostListItem
}
};
</script>