feat(post): add author
This commit is contained in:
parent
c963e70a67
commit
f213264f24
@ -7,7 +7,10 @@ const posts = usePosts()
|
||||
|
||||
<ul>
|
||||
<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>
|
||||
</ul>
|
||||
</template>
|
||||
|
Loading…
Reference in New Issue
Block a user