Bläddra i källkod

:bug: hiding dates for events and exhibitions with nothing set | #157

tags/0.9.0
J 4 år sedan
förälder
incheckning
c82dee295c
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2
    2
      vue-theme/src/pages/single.vue

+ 2
- 2
vue-theme/src/pages/single.vue Visa fil

16
             //- p(v-if="singlePost.subtypes") subtypes: {{ singlePost.subtypes }}
16
             //- p(v-if="singlePost.subtypes") subtypes: {{ singlePost.subtypes }}
17
 
17
 
18
             .date-info(v-if="['exhibition', 'event'].includes(type)")
18
             .date-info(v-if="['exhibition', 'event'].includes(type)")
19
-                p start: {{ dateFrom(singlePost.start, type == 'event') }}
20
-                p end: {{ dateFrom(singlePost.end, type == 'event') }}
19
+                p(v-if="singlePost.start") start: {{ dateFrom(singlePost.start, type == 'event') }}
20
+                p(v-if="singlePost.end") end: {{ dateFrom(singlePost.end, type == 'event') }}
21
 
21
 
22
         //- WP main content
22
         //- WP main content
23
         section.content(v-html="singlePost.content")
23
         section.content(v-html="singlePost.content")

Laddar…
Avbryt
Spara