mirror of
https://github.com/versia-pub/blog.git
synced 2026-03-13 01:29:15 +01:00
feat: ✨ Add author to articles
This commit is contained in:
parent
f85bc75145
commit
5fc72966dd
4 changed files with 92 additions and 64 deletions
|
|
@ -3,10 +3,12 @@
|
|||
<Title v-if="post.title" :created_at="post.created_at" :title="post.title" />
|
||||
<Image v-if="post.image" :image="post.image.url" :width="post.image.width" :height="post.image.height" :caption="post.image.credit" />
|
||||
<Content :body="body" />
|
||||
<Author v-if="post.author" :avatar="post.author.image" :name="post.author.name" :handle="post.author.handle" class="mt-10" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import Author from "~/components/article/author.vue";
|
||||
import Content from "~/components/article/content.vue";
|
||||
import Image from "~/components/article/image.vue";
|
||||
import Title from "~/components/article/title.vue";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue