Post titles link to /post/:id page.
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
<template>
|
||||
<div>
|
||||
<h2>{{ post.title }}</h2>
|
||||
<router-link :to="`/post/${ post.id }`">
|
||||
<h2>{{ post.title }}</h2>
|
||||
</router-link>
|
||||
|
||||
<p><span>{{ post.date }}</span> by <span>{{ post.author }}</span></p>
|
||||
|
||||
<img v-if="post.thumbnail" :src="post.thumbnail" />
|
||||
|
||||
Reference in New Issue
Block a user