Kaynağa Gözat

Sidebar Posts Set limit to 3

tags/1.0.3
Alej 3 yıl önce
ebeveyn
işleme
6f39ccddc9

+ 3
- 3
vue-theme/src/components/sidebars/events.vue Dosyayı Görüntüle

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

+ 3
- 3
vue-theme/src/components/sidebars/exhibitions.vue Dosyayı Görüntüle

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

Loading…
İptal
Kaydet