diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2019-10-17 21:30:20 +0200 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2019-10-17 21:30:20 +0200 |
commit | f65a12c2824bed51bd363393780a2a158af18f5e (patch) | |
tree | 37a5ccee4285160262c73325dc72d8fc294ef341 /pages/kronika/index.vue | |
parent | edb6cb5adc69c8f2131b7b309d91a53e21af2486 (diff) | |
download | puszcza-f65a12c2824bed51bd363393780a2a158af18f5e.tar.gz puszcza-f65a12c2824bed51bd363393780a2a158af18f5e.zip |
Add chronicle to navbar
Diffstat (limited to 'pages/kronika/index.vue')
-rw-r--r-- | pages/kronika/index.vue | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/pages/kronika/index.vue b/pages/kronika/index.vue new file mode 100644 index 0000000..4bb6910 --- /dev/null +++ b/pages/kronika/index.vue @@ -0,0 +1,18 @@ +<template> + <div style="padding-top: 20px"> + <h2>Ostatnie wpisy</h2> + <a v-for="(post, index) in posts" :key="index" :href="post.route">{{post.content.meta.title}}</a> + </div> +</template> + +<script> +import k from '~/api' + +export default { + async asyncData() { + return { + posts: k.getPosts() + } + } +} +</script> \ No newline at end of file |