Browse Source

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

tags/0.9.0
J 4 years ago
parent
commit
c82dee295c
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      vue-theme/src/pages/single.vue

+ 2
- 2
vue-theme/src/pages/single.vue View File

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")

Loading…
Cancel
Save