Rework posts

This commit is contained in:
2021-08-31 18:09:05 +02:00
parent 04ed9d9b98
commit 25a3cca4a8
2 changed files with 1 additions and 11 deletions

View File

@@ -4,7 +4,7 @@
<h1 class="font-black text-3xl duration-300" :class="getHoverColor">{{ $t(title) }}</h1>
<h3 class="my-4 text-2xl text-gray-600">{{ $t(description) }}</h3>
<div class="text-gray-400">
<span>{{ formatDate }}</span> | <span>{{ reading_time }}</span> min.
<span>{{ formatDate }}</span>, <span>{{ reading_time }}</span> min.
</div>
</div>
</nuxt-link>
@@ -39,18 +39,10 @@ export default defineComponent({
type: String,
default: "Date"
},
cover: {
type: String,
default: "string"
},
slug: {
type: String,
default: "slug"
},
tags: {
type: Array,
default: () => ["Tag1", "Tag2", "Tag3"],
},
reading_time: {
type: Number,
default: 0

View File

@@ -15,11 +15,9 @@
:key="post.slug"
:color="post.color.name"
:title="post.title.code"
:cover="post.cover.file_name"
:description="post.description.code"
:date="post.date"
:slug="post.slug"
:tags="post.tags"
:reading_time="post.reading_time"
/>
</div>