Explorar el Código

router-link for breadcrumb navigation

tags/0.9.0
Alej hace 4 años
padre
commit
9556d8d84e
Se han modificado 1 ficheros con 17 adiciones y 9 borrados
  1. 17
    9
      vue-theme/src/pages/single.vue

+ 17
- 9
vue-theme/src/pages/single.vue Ver fichero

@@ -7,14 +7,20 @@
7 7
             p loading...
8 8
     article(v-else).f-grow.shadow
9 9
         header
10
-            //- breadcrumb links here at top of page, needs link routing
11
-            h3.t-up.breadcrumb {{ type }} / {{ post.title }}
10
+            //- breadcrumb links at top of page, needs link routing
11
+            breadcrumb.f-row.start.t-up
12
+                router-link(:to="`/${type}`")
13
+                    h5 {{ type }}
14
+                //- h5 •
15
+                h5 >
16
+                router-link(:to="`/${type}/${post.slug}`")
17
+                    h5 {{ post.title }}
12 18
             
13 19
             //- h1 {{ type }}:{{ $route.params.slug }} {{ post.title }}
14
-            h1.t-cntr.t-b  {{ post.title }}
20
+            h1.t-b  {{ post.title }}
15 21
             //- p(v-if="post.categories") categories: {{ post.categories }}
16 22
             //- p(v-if="post.type") type: {{ post.type }}
17
-            p(v-if="post.subtypes") subtypes: {{ post.subtypes }}
23
+            //- p(v-if="post.subtypes") subtypes: {{ post.subtypes }}
18 24
 
19 25
             .date-info(v-if="type === 'events' || post.type === 'exhibitions'")
20 26
                 p start: {{ dateFrom(post.start) }}
@@ -216,11 +222,6 @@ export default {
216 222
             color: $cia_black
217 223
             /* font-weight: 800 */
218 224
             padding: $ms--3 0
219
-        h3.breadcrumb
220
-            /* color: orange */
221
-            color: $cia_red
222
-            font-weight: 400
223
-            padding: $ms--3 0
224 225
         > ul
225 226
             /* grid-gap: $ms-0 */
226 227
             list-style: none
@@ -240,6 +241,13 @@ export default {
240 241
             left: 0px 
241 242
             width: 100% 
242 243
             height: 100%
244
+
245
+        breadcrumb
246
+            h5
247
+                /* color: yellow */
248
+                color: $cia_red
249
+                /* font-weight: 400 */
250
+                /* padding: $ms--6 0 */
243 251
         
244 252
         //- end of article icon
245 253
         footer

Loading…
Cancelar
Guardar