Bläddra i källkod

router-link for breadcrumb navigation

tags/0.9.0
Alej 4 år sedan
förälder
incheckning
9556d8d84e
1 ändrade filer med 17 tillägg och 9 borttagningar
  1. 17
    9
      vue-theme/src/pages/single.vue

+ 17
- 9
vue-theme/src/pages/single.vue Visa fil

7
             p loading...
7
             p loading...
8
     article(v-else).f-grow.shadow
8
     article(v-else).f-grow.shadow
9
         header
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
             //- h1 {{ type }}:{{ $route.params.slug }} {{ post.title }}
19
             //- h1 {{ type }}:{{ $route.params.slug }} {{ post.title }}
14
-            h1.t-cntr.t-b  {{ post.title }}
20
+            h1.t-b  {{ post.title }}
15
             //- p(v-if="post.categories") categories: {{ post.categories }}
21
             //- p(v-if="post.categories") categories: {{ post.categories }}
16
             //- p(v-if="post.type") type: {{ post.type }}
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
             .date-info(v-if="type === 'events' || post.type === 'exhibitions'")
25
             .date-info(v-if="type === 'events' || post.type === 'exhibitions'")
20
                 p start: {{ dateFrom(post.start) }}
26
                 p start: {{ dateFrom(post.start) }}
216
             color: $cia_black
222
             color: $cia_black
217
             /* font-weight: 800 */
223
             /* font-weight: 800 */
218
             padding: $ms--3 0
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
         > ul
225
         > ul
225
             /* grid-gap: $ms-0 */
226
             /* grid-gap: $ms-0 */
226
             list-style: none
227
             list-style: none
240
             left: 0px 
241
             left: 0px 
241
             width: 100% 
242
             width: 100% 
242
             height: 100%
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
         //- end of article icon
252
         //- end of article icon
245
         footer
253
         footer

Laddar…
Avbryt
Spara