This commit is contained in:
こぴなたみぽ 2018-02-11 17:11:30 +09:00
parent b427807bf6
commit 202ac80fa8
1 changed files with 3 additions and 3 deletions

View File

@ -1,8 +1,8 @@
<template> <template>
<div class="mk-timeline" ref="root"> <div class="mk-timeline" ref="root">
<template each={ post, i in posts }> <template v-for="(post, i) in _posts">
<mk-timeline-post post={ post }/> <mk-timeline-post :post="post" :key="post.id"/>
<p class="date" v-if="i != posts.length - 1 && post._date != posts[i + 1]._date"><span>%fa:angle-up%{ post._datetext }</span><span>%fa:angle-down%{ posts[i + 1]._datetext }</span></p> <p class="date" :key="post.id + '-time'" v-if="i != _posts.length - 1 && _post._date != _posts[i + 1]._date"><span>%fa:angle-up%{{ post._datetext }}</span><span>%fa:angle-down%{{ _posts[i + 1]._datetext }}</span></p>
</template> </template>
<footer data-yield="footer"> <footer data-yield="footer">
<yield from="footer"/> <yield from="footer"/>