Browse Source

sidebar - added sort by links

tags/0.9.0
Alej 4 years ago
parent
commit
966f3ebf66
1 changed files with 9 additions and 2 deletions
  1. 9
    2
      vue-theme/src/components/sidebars/sidebar.vue

+ 9
- 2
vue-theme/src/components/sidebars/sidebar.vue View File

@@ -11,14 +11,14 @@ aside.sidebar
11 11
                 //- temporary reminder
12 12
                 template(v-if="['exhibition', 'event'].includes(type) && layout === 'list'")
13 13
                     p 
14
-                        router-link(:to="`/${type}/sorted/by-date`")
14
+                        router-link(:to="`/${type}/`")
15 15
                             p by all
16 16
                     p 
17 17
                         router-link(:to="`/${type}/sorted/by-current-and-upcoming`")
18 18
                             p by current and upcoming
19 19
                 template(v-if="['short', 'guide', 'publication', 'technique', 'post'].includes(type) && layout === 'list'")
20 20
                     p 
21
-                        router-link(:to="`/${type}/sorted/by-date`")
21
+                        router-link(:to="`/${type}`")
22 22
                             p by all
23 23
 
24 24
         //- p2p types and related posts
@@ -107,6 +107,7 @@ export default {
107 107
                 case 'short':
108 108
                     opts = [
109 109
                         Object.keys(this.sortTypes)[2],
110
+                        Object.keys(this.sortTypes)[1],
110 111
                         Object.keys(this.sortTypes)[3],
111 112
                     ]
112 113
                     break
@@ -126,6 +127,12 @@ export default {
126 127
                         Object.keys(this.sortTypes)[1],
127 128
                     ]
128 129
                     break
130
+                case 'technique':
131
+                    opts = [
132
+                        Object.keys(this.sortTypes)[1],
133
+                        Object.keys(this.sortTypes)[3],
134
+                    ]
135
+                    break
129 136
             }
130 137
             return opts
131 138
         },

Loading…
Cancel
Save