Переглянути джерело

added sidebar sort links for new post types

tags/0.9.0
Alej 4 роки тому
джерело
коміт
4c73a77e42
1 змінених файлів з 15 додано та 1 видалено
  1. 15
    1
      vue-theme/src/components/sidebars/sidebar.vue

+ 15
- 1
vue-theme/src/components/sidebars/sidebar.vue Переглянути файл

@@ -2,7 +2,7 @@
2 2
 aside.sidebar
3 3
     section
4 4
         //- if not single layout with sorting
5
-        .shadow(v-if="['artist', 'exhibition', 'event', 'post'].includes(type) && layout !== 'single'")
5
+        .shadow(v-if="['artist', 'exhibition', 'event', 'short', 'guide', 'object', 'publication', 'technique', 'post'].includes(type) && layout !== 'single'")
6 6
             h3.t-up sort {{ type }} by
7 7
             ul.t-up
8 8
                 li(v-for="option in sortOptions")
@@ -16,6 +16,10 @@ aside.sidebar
16 16
                     p 
17 17
                         router-link(:to="`/${type}/sorted/by-current-and-upcoming`")
18 18
                             p by current and upcoming
19
+                template(v-if="['short', 'guide', 'publication', 'technique', 'post'].includes(type) && layout === 'list'")
20
+                    p 
21
+                        router-link(:to="`/${type}/sorted/by-date`")
22
+                            p by all
19 23
 
20 24
         //- p2p types and related posts
21 25
         .shadow(v-if="layout === 'single' && Object.keys(related).length" v-for="p2pPostType in Object.keys(related)")
@@ -112,6 +116,16 @@ export default {
112 116
                         Object.keys(this.sortTypes)[1],
113 117
                     ]
114 118
                     break
119
+                case 'object':
120
+                    opts = [
121
+                        Object.keys(this.sortTypes)[1],
122
+                    ]
123
+                    break
124
+                case 'publication':
125
+                    opts = [
126
+                        Object.keys(this.sortTypes)[1],
127
+                    ]
128
+                    break
115 129
             }
116 130
             return opts
117 131
         },

Завантаження…
Відмінити
Зберегти