Sfoglia il codice sorgente

sidebar hardcode router link Articles, Releases

tags/1.0.0^2^2
Alej 3 anni fa
parent
commit
461ae652c2
1 ha cambiato i file con 5 aggiunte e 9 eliminazioni
  1. 5
    9
      vue-theme/src/components/sidebars/sidebar.vue

+ 5
- 9
vue-theme/src/components/sidebars/sidebar.vue Vedi File

11
                 
11
                 
12
                 li 
12
                 li 
13
                     //- ?type=articles //
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
                         p articles
15
                         p articles
20
                 li 
16
                 li 
21
                     //- ?type=releases //
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
                         //- p {{ option }}
19
                         //- p {{ option }}
24
-                        p releases
20
+                        p releases 
25
                 li
21
                 li
26
                     router-link(:to="`/${type}/sorted/by-date`")
22
                     router-link(:to="`/${type}/sorted/by-date`")
27
                         p by all
23
                         p by all
28
                 li
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
                         p by current and upcoming
26
                         p by current and upcoming
31
         
27
         
32
         //- if {{type}} has sorted by-material show material options
28
         //- if {{type}} has sorted by-material show material options
104
                 'by artist': `${sortTypes.artist}`,     //:2
100
                 'by artist': `${sortTypes.artist}`,     //:2
105
                 'by episode': `${sortTypes.episode}`,   //:3
101
                 'by episode': `${sortTypes.episode}`,   //:3
106
                 'by type': `${sortTypes.subtype}`,      //:4
102
                 'by type': `${sortTypes.subtype}`,      //:4
107
-                'by articles': `?type=articles`,        //:5
103
+                'by articles': `articles`,              //:5
108
                 subtype: 'by-type',
104
                 subtype: 'by-type',
109
             },
105
             },
110
             charaSets: [
106
             charaSets: [

Loading…
Annulla
Salva