about summary refs log tree commit diff
path: root/pages
diff options
context:
space:
mode:
Diffstat (limited to 'pages')
-rw-r--r--pages/index.vue6
-rw-r--r--pages/kronika/index.vue6
2 files changed, 8 insertions, 4 deletions
diff --git a/pages/index.vue b/pages/index.vue
index 3a19237..045025d 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -3,7 +3,7 @@
     <join-us />
     <div style="width: 100%; padding-top: 50px">
       <h1>Ostatnie wpisy z kroniki</h1>
-      <post-list :max="4" />
+      <post-list :posts="posts" :max="4" />
     </div>
     <facebook-feed />
   </div>
@@ -13,9 +13,11 @@
 import JoinUs from '~/components/JoinUs.vue'
 import FacebookFeed from '~/components/Facebook/FacebookFeed.vue'
 import PostList from '~/components/Posts/PostList'
+import postListParentMixin from '~/components/Posts/PostList/parentMixin'
 
 export default {
   name: 'HomeView',
-  components: { JoinUs, FacebookFeed, PostList }
+  components: { JoinUs, FacebookFeed, PostList },
+  mixins: [postListParentMixin]
 }
 </script>
diff --git a/pages/kronika/index.vue b/pages/kronika/index.vue
index 86344c3..8142a6c 100644
--- a/pages/kronika/index.vue
+++ b/pages/kronika/index.vue
@@ -1,16 +1,18 @@
 <template>
   <div style="padding-top: 20px">
     <h2>Ostatnie wpisy</h2>
-    <post-list />
+    <post-list :posts="posts" />
   </div>
 </template>
 
 <script>
 import PostList from '~/components/Posts/PostList'
+import postListParentMixin from '~/components/Posts/PostList/parentMixin'
 
 export default {
   components: {
     PostList
-  }
+  },
+  mixins: [postListParentMixin]
 }
 </script>