Pārlūkot izejas kodu

sidebar hardcode router link Articles, Releases

tags/1.0.0^2^2
Alej 3 gadus atpakaļ
vecāks
revīzija
461ae652c2
1 mainītis faili ar 5 papildinājumiem un 9 dzēšanām
  1. 5
    9
      vue-theme/src/components/sidebars/sidebar.vue

+ 5
- 9
vue-theme/src/components/sidebars/sidebar.vue Parādīt failu

@@ -11,22 +11,18 @@ aside.sidebar
11 11
                 
12 12
                 li 
13 13
                     //- ?type=articles //
14
-                    router-link(v-if="type === 'post' && layout !== 'single'" :to="`/${type}/?type=${sortTypes[option]}`")
15
-                        p articles2
16
-                li 
17
-                    //- ?type=articles //
18
-                    router-link(v-if="type === 'post' && layout !== 'single'" :to="`/${type}/?type=articles`")
14
+                    router-link(v-if="type === 'post' " :to="`/${type}/?type=articles`")
19 15
                         p articles
20 16
                 li 
21 17
                     //- ?type=releases //
22
-                    router-link(v-if="type === 'post' && layout !== 'single'" :to="`/post/?type=releases`")
18
+                    router-link(v-if="type === 'post' " :to="`/${type}/?type=releases`")
23 19
                         //- p {{ option }}
24
-                        p releases
20
+                        p releases 
25 21
                 li
26 22
                     router-link(:to="`/${type}/sorted/by-date`")
27 23
                         p by all
28 24
                 li
29
-                    router-link(v-if="shouldShowDateSort.includes(type) && layout !== 'single'" :to="`/${type}/sorted/by-current-and-upcoming`")
25
+                    router-link(v-if="shouldShowDateSort.includes(type) " :to="`/${type}/sorted/by-current-and-upcoming`")
30 26
                         p by current and upcoming
31 27
         
32 28
         //- if {{type}} has sorted by-material show material options
@@ -104,7 +100,7 @@ export default {
104 100
                 'by artist': `${sortTypes.artist}`,     //:2
105 101
                 'by episode': `${sortTypes.episode}`,   //:3
106 102
                 'by type': `${sortTypes.subtype}`,      //:4
107
-                'by articles': `?type=articles`,        //:5
103
+                'by articles': `articles`,              //:5
108 104
                 subtype: 'by-type',
109 105
             },
110 106
             charaSets: [

Notiek ielāde…
Atcelt
Saglabāt