Просмотр исходного кода

Sidebar Posts Set limit to 3

tags/1.0.3
Alej 3 лет назад
Родитель
Сommit
6f39ccddc9

+ 3
- 3
vue-theme/src/components/sidebars/events.vue Просмотреть файл

@@ -1,6 +1,6 @@
1 1
 <template lang="pug">
2 2
 //- most recent upcoming event - sidebar in events list - max=2?
3
-h3.t-up {{ listType }} events
3
+h3.t-up events {{ listType }} 
4 4
 ul.t-up
5 5
     li(v-for="post in events")
6 6
         router-link(:to="`/event/${post.slug}`")
@@ -28,7 +28,7 @@ export default {
28 28
     },
29 29
     data() {
30 30
         return {
31
-            listType: 'upcoming',
31
+            listType: 'current/upcoming',
32 32
         }
33 33
     },
34 34
     methods: {
@@ -40,7 +40,7 @@ export default {
40 40
                 {
41 41
                     sortType: sortTypes.currentAndUpcoming,
42 42
                     params: {
43
-                        limit: 99,
43
+                        limit: 3,
44 44
                         page: 1
45 45
                     }
46 46
                 }

+ 3
- 3
vue-theme/src/components/sidebars/exhibitions.vue Просмотреть файл

@@ -1,6 +1,6 @@
1 1
 <template lang="pug">
2 2
 //- most recent upcoming exhibition - sidebar in events list - max=2?
3
-h3.t-up {{ listType }} exhibitions
3
+h3.t-up exhibitions {{ listType }} 
4 4
 ul.t-up
5 5
     li(v-for="post in exhibitions")
6 6
         router-link(:to="`/exhibition/${post.slug}`")
@@ -28,7 +28,7 @@ export default {
28 28
     },
29 29
     data() {
30 30
         return {
31
-            listType: 'upcoming',
31
+            listType: 'current/upcoming',
32 32
         }
33 33
     },
34 34
     methods: {
@@ -40,7 +40,7 @@ export default {
40 40
                 {
41 41
                     sortType: sortTypes.currentAndUpcoming,
42 42
                     params: {
43
-                        limit: 99,
43
+                        limit: 3,
44 44
                         page: 1
45 45
                     }
46 46
                 }

Загрузка…
Отмена
Сохранить