aboutsummaryrefslogtreecommitdiff
path: root/src/html/feed.html
blob: 7128174dec273311aa2512fee1adb28e6b4e4197 (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">
            <a v-bind:href="'/post/'+post.type+'/'+post.id">{{ post.createdAt.substring(0,10) }}</a>
            <span v-for="tag in post.tags">
                <a class="tag" v-bind:href="'/tags#'+tag">{{tag}}</a>
            </span>
        </p>
    </div>
</div>