Skip to content

Commit

Permalink
web: Fix error for articles missing dates
Browse files Browse the repository at this point in the history
  • Loading branch information
schneefux committed Jan 22, 2024
1 parent 0ea69db commit 0502123
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/components/article-card.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
itemprop="thumbnailUrl"
></div>
</template>
<template v-slot:preview>
<template v-if="document.createdAt" v-slot:preview>
<absolute-time :timestamp="document.createdAt" format-str="PP"></absolute-time>
</template>
<template v-slot:content>
Expand Down
2 changes: 1 addition & 1 deletion web/pages/blog/guides/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
itemtype="http://schema.org/AnalysisNewsArticle"
light
>
<template v-slot:preview>
<template v-if="post.createdAt" v-slot:preview>
<absolute-time
:timestamp="post.createdAt"
class="text-gray-400 text-sm"
Expand Down

0 comments on commit 0502123

Please sign in to comment.