Highlight current post in "Read Next" card

This commit is contained in:
Hippo 2019-12-24 14:06:14 +05:30
parent 9b448913fa
commit a6df86542c

View file

@ -25,7 +25,10 @@
<ul> <ul>
<li v-for="post in posts.slice(0, 3)" <li v-for="post in posts.slice(0, 3)"
:key="post.node.id"> :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> </li>
</ul> </ul>
</div> </div>