fixed issue in postteaser

This commit is contained in:
Markus 2024-02-01 15:48:42 +01:00
parent d70fd979fb
commit d8ceca17da

View File

@ -16,7 +16,6 @@
</template>
<client-only>
<div class="post-user-row">
<!-- <user-teaser :user="post.author" :group="post.group" :date-time="post.createdAt" /> -->
<user-teaser :user="post.author" :group="post.group" />
<hc-ribbon
:class="[isPinned ? '--pinned' : '', post.image ? 'post-ribbon-w-img' : 'post-ribbon']"
@ -26,6 +25,7 @@
</div>
</client-only>
<h2 class="title hyphenate-text">{{ post.title }}</h2>
<client-only>
<ds-space
v-if="post && post.postType[0] === 'Event'"
margin-bottom="small"
@ -45,6 +45,7 @@
:endDate="post.eventEnd"
/>
</ds-space>
</client-only>
<!-- TODO: replace editor content with tiptap render view -->
<!-- eslint-disable-next-line vue/no-v-html -->
<div class="content hyphenate-text" v-html="excerpt" />
@ -99,12 +100,14 @@
/>
</client-only>
</footer>
<div class="date-row">
<client-only>
<div class="date-row" v-if="post.createdAt">
<span class="text">
<relative-date-time :date-time="post.createdAt" />
<slot name="dateTime"></slot>
</span>
</div>
</client-only>
</base-card>
</nuxt-link>
</template>