Explorar el Código

Merge branch 'dev' of craft-in-america/vue-wp into master

tags/1.0.3
Alej hace 2 años
padre
commit
d6dba8c62b

+ 4
- 4
vue-theme/src/components/navigation/navigation.vue Ver fichero

@@ -113,15 +113,15 @@ nav.main.w-max
113 113
         input(id="toggle-mobile-menu" type="checkbox").hide
114 114
 
115 115
         ul.drop-down.w-max.t-up
116
+            li.f-col.center
117
+                h5
118
+                    input(v-model="searchTerms" @keyup.enter="sendSearch" tabindex="10")
119
+                    button(@click="sendSearch" tabindex="11")  🔍 search 
116 120
             li(v-for="item in menuItems").f-row.center
117 121
                 router-link(@click="uncheck" v-if="item == 'about' || item == 'donate'" :to="`/page/${item}`")
118 122
                     h5 {{ item }}
119 123
                 router-link(@click="uncheck" v-else= "" :to="`/${item}`")
120 124
                     h5 {{ item }}
121
-            li.f-col.center
122
-                h5
123
-                    input(v-model="searchTerms" @keyup.enter="sendSearch" tabindex="10")
124
-                    button(@click="sendSearch" tabindex="11") 🔍 search
125 125
 
126 126
 </template>
127 127
 

+ 7
- 13
vue-theme/src/components/sidebars/sidebar.vue Ver fichero

@@ -25,13 +25,6 @@ aside.sidebar
25 25
                     //- event?type=talks //
26 26
                     router-link(v-if="type === 'event' " :to="`/${type}?type=talks`")
27 27
                         p talks 
28
-                //- li 
29
-                //-     //- event?type=recorded-talks-and-interviews //
30
-                //-     router-link(v-if="type === 'event' " :to="`/${type}?type=recorded-talks-and-interviews`")
31
-                //-         p Recorded Talks + Interviews 
32
-                //- li 
33
-                //-     router-link(v-if="type === 'event' " :to="`/page/recorded-talks-and-interviews`")
34
-                //-         p Recorded Talks + Interviews 
35 28
                 li 
36 29
                     //- event?type=workshops //
37 30
                     router-link(v-if="type === 'event' " :to="`/${type}?type=workshops`")
@@ -40,13 +33,14 @@ aside.sidebar
40 33
                     //- by type //
41 34
                 li(v-for="option in sortOptions")
42 35
                     router-link(:to="`/${type}/sorted/${sortTypes[option]}`")
43
-                        p {{ option }}
36
+                        p {{ option }} 
44 37
                 li
45 38
                     router-link(v-if="shouldShowDateSort.includes(type) " :to="`/${type}/sorted/by-current-and-upcoming`")
46
-                        p by current and upcoming
47
-                //- li
48
-                //-     router-link(v-if="type === ('event' || 'exhibition') " :to="`/${type}/`")
49
-                //-         p by all 
39
+                        p current and upcoming
40
+                li
41
+                    //- router-link(v-if="type === ('post') " :to="`/${type}/`")
42
+                    router-link(v-if="type === ('post') " :to="`/blog`")
43
+                        p by all 
50 44
 
51 45
         //- if artist has sorted by-alpha show alpha sets           
52 46
         .shadow(v-if="['artist'].includes(type) && layout !== 'single'")
@@ -75,7 +69,7 @@ aside.sidebar
75 69
                         router-link(:to="`/${type}/sorted/by-episode#${episodeSet}`")
76 70
                             p {{ episodeSet }} &nbsp;&nbsp;
77 71
 
78
-        //- if {{type}} has sorted by-type show subtype sets           
72
+        //- if {{type}} has sorted by-type show subtype sets 
79 73
         .shadow(v-if="shouldShowTypeSort.includes(type) && layout !== 'single'")
80 74
             h3.t-up {{ type }}s type  
81 75
             ul.t-up

+ 2
- 1
vue-theme/src/pages/list.vue Ver fichero

@@ -7,7 +7,8 @@
7 7
                 h3(v-else-if="hasSubtype") {{ type }}s: {{ $route.query.type }}&nbsp;
8 8
                 h3(v-else) Search results for: {{$route.query.s }}&nbsp;
9 9
                 span(v-if="sortBy")
10
-                    h3 {{ sortBy.replace(/\-/g, ' ')}} 
10
+                    h3 {{ sortBy.replace(/[-]/g, ' ')}}
11
+                    //- h3 :{{ sortBy.replace(/[b][y]|[-]/g, ' ')}}
11 12
 
12 13
             h3(v-if="!loaded") loading...
13 14
             .content(

Loading…
Cancelar
Guardar