Highlight current post in "Read Next" card
This commit is contained in:
parent
9b448913fa
commit
a6df86542c
1 changed files with 4 additions and 1 deletions
|
@ -25,7 +25,10 @@
|
|||
<ul>
|
||||
<li v-for="post in posts.slice(0, 3)"
|
||||
:key="post.node.id">
|
||||
<a :href="post.node.path">{{ post.node.title }}</a>
|
||||
<a :href="post.node.path">
|
||||
<b v-if="post.node.id == currentPostId">{{ post.node.title }}</b>
|
||||
<template v-else>{{ post.node.title }}</template>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue