-
Notifications
You must be signed in to change notification settings - Fork 204
/
Index.vue
50 lines (45 loc) · 877 Bytes
/
Index.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<template>
<Layout :show-logo="false">
<!-- Author intro -->
<Author :show-title="true" />
<!-- List posts -->
<div class="posts">
<PostCard v-for="edge in $page.posts.edges" :key="edge.node.id" :post="edge.node"/>
</div>
</Layout>
</template>
<page-query>
query {
posts: allPost(filter: { published: { eq: true }}) {
edges {
node {
id
title
date (format: "D. MMMM YYYY")
timeToRead
description
cover_image (width: 770, height: 380, blur: 10)
path
tags {
id
title
path
}
}
}
}
}
</page-query>
<script>
import Author from '~/components/Author.vue'
import PostCard from '~/components/PostCard.vue'
export default {
components: {
Author,
PostCard
},
metaInfo: {
title: 'Hello, world!'
}
}
</script>