|
|
@@ -10,15 +10,16 @@
|
|
10
|
10
|
//- breadcrumb links at top of page, needs link routing
|
|
11
|
11
|
breadcrumb(:type="type" :post="singlePost")
|
|
12
|
12
|
|
|
13
|
|
- h1.t-b {{ singlePost.title }}
|
|
|
13
|
+ h1.t-b {{ singlePost.title }}
|
|
14
|
14
|
//- p(v-if="singlePost.categories") categories: {{ singlePost.categories }}
|
|
15
|
15
|
//- p(v-if="singlePost.type") type: {{ singlePost.type }}
|
|
16
|
16
|
//- p(v-if="singlePost.subtypes") subtypes: {{ singlePost.subtypes }}
|
|
17
|
17
|
|
|
18
|
|
- .date-info(v-if="['exhibition', 'event'].includes(type)")
|
|
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
|
|
-
|
|
|
18
|
+ .date-info.t-cntr(v-if="['exhibition', 'event'].includes(type)")
|
|
|
19
|
+ //- for events display: date, time-time
|
|
|
20
|
+ h4(v-if="singlePost.start, singlePost.end && type == 'event'") {{ dateFrom(singlePost.start, type == 'event') }} - {{ dateFrom(singlePost.end, type == 'event').split(',')[1] }}
|
|
|
21
|
+ //- else for single, exhibition: date-date
|
|
|
22
|
+ h4(v-else-if="singlePost.start, singlePost.end") {{ dateFrom(singlePost.start, type == 'event') }} - {{ dateFrom(singlePost.end, type == 'event') }}
|
|
22
|
23
|
//- WP main content
|
|
23
|
24
|
section.content(v-html="singlePost.content")
|
|
24
|
25
|
|