mirror of
https://github.com/ArthurDanjou/website-old.git
synced 2026-01-14 20:19:35 +01:00
Rework posts
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user