[O] Optimize active post selection
This commit is contained in:
+1
-2
@@ -6,8 +6,7 @@
|
|||||||
<span v-if="category">📂{{category}}</span>
|
<span v-if="category">📂{{category}}</span>
|
||||||
<span class="no-after" v-if="activePost">{{activePost.title}}</span>
|
<span class="no-after" v-if="activePost">{{activePost.title}}</span>
|
||||||
</div>
|
</div>
|
||||||
<BlogPostPreview v-for="m of filteredPosts" :key="m" :meta="m"
|
<BlogPostPreview v-for="m of filteredPosts" :key="m" :meta="m" :active="m === activePost"/>
|
||||||
:active="post ? m.url_name === post : m === filteredPosts[0] && m.pinned"/>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user