Преглед изворни кода

:bug: fixing breadcrumb link in card to point to exhibition and event sort-by | #114

tags/0.9.0
J пре 4 година
родитељ
комит
c5c927c95f
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3
    1
      vue-theme/src/components/card.vue

+ 3
- 1
vue-theme/src/components/card.vue Прегледај датотеку

1
 <template lang="pug">
1
 <template lang="pug">
2
 .card(v-if="content")
2
 .card(v-if="content")
3
     header
3
     header
4
-        router-link(v-if="!hideType" :to="`/${type}`")
4
+        router-link(v-if="!hideType && ['event','exhibition'].includes(type)" :to="`/${type}/by-current-and-upcoming`")
5
+            p.t-up {{type}}
6
+        router-link(v-else-if="!hideType" :to="`/${type}`")
5
             p.t-up {{type}}
7
             p.t-up {{type}}
6
     article.card--info(:class="{ 'wide': wide }")
8
     article.card--info(:class="{ 'wide': wide }")
7
         router-link(:to="`/${type}/${content.slug}`")
9
         router-link(:to="`/${type}/${content.slug}`")

Loading…
Откажи
Сачувај