feat(post): add author

This commit is contained in:
thehrz 2023-09-09 23:57:31 +08:00
parent c963e70a67
commit f213264f24
Signed by: thehrz
GPG Key ID: C84CBCE7D5F88855

View File

@ -7,7 +7,10 @@ const posts = usePosts()
<ul> <ul>
<li v-for="post in posts" :key="post.title"> <li v-for="post in posts" :key="post.title">
<router-link :to="post.path" v-text="post.title" /> <router-link class="decoration-none" :to="post.path">
<span v-text="`${post.title}`" />
<span class="c-coolgray-400 ml-2ch font-bold" v-text="`by ${post.author}`" />
</router-link>
</li> </li>
</ul> </ul>
</template> </template>