瀏覽代碼

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

tags/0.9.0
J 4 年之前
父節點
當前提交
c82dee295c
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      vue-theme/src/pages/single.vue

+ 2
- 2
vue-theme/src/pages/single.vue 查看文件

@@ -16,8 +16,8 @@
16 16
             //- p(v-if="singlePost.subtypes") subtypes: {{ singlePost.subtypes }}
17 17
 
18 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 22
         //- WP main content
23 23
         section.content(v-html="singlePost.content")

Loading…
取消
儲存