Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit 0327584

Browse files
committed
fix: Cannot read property 'trim' of undefined
1 parent c4a4979 commit 0327584

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

layouts/BaseListLayout.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
<a :href="page.path">{{ page.title }}</a>
66
</div>
77
<div class="ui-post-summary"><Content :page-key="page.key" slot-key="intro" /></div>
8-
<div class="ui-post-author">
8+
<div class="ui-post-author" v-if="page.frontmatter.author">
99
<NavigationIcon /> <span>{{ page.frontmatter.author }} in {{ page.frontmatter.location }}</span>
1010
</div>
11-
<div class="ui-post-date">
11+
<div class="ui-post-date" v-if="page.frontmatter.date">
1212
<ClockIcon /> <span>{{ new Date(page.frontmatter.date.trim()).toDateString() }}</span>
1313
</div>
1414
</div>

0 commit comments

Comments
 (0)