aboutsummaryrefslogtreecommitdiff
path: root/src/html/feed.html
blob: 15a364dbf937265de2972569a712cc9dbd64f14b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<div class="feed">
    <div class="card" v-for="post in posts">
        <p class="card-text" v-html="post.description"></p>
        <div class="card-img">
            <span v-for="image in post.images">
                <a v-bind:href="image"><img v-bind:src="image"></a>
            </span>
        </div>
        <p class="date">
            {{ post.createdAt.substring(0,10) }}
            <span v-for="tag in post.tags">
                <a class="tag" v-bind:href="'/tags#'+tag">{{tag}}</a>
            </span>
        </p>
    </div>
</div>