aboutsummaryrefslogtreecommitdiff
path: root/src/templates/feed.html
blob: 2158f3ed83fb36f63ff80f924a0a88d67213a6e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<div class="feed">
    {{#each posts}}
    <div class="card">
        <p class="card-text">{{{this.description}}}</p>
        <div class="card-img">
            {{#each this.images}}
            <span>
                <a href="/{{this}}"><img src="/{{this}}"></a>
            </span>
            {{/each}}
        </div>
        <p class="date">
            <a href="/post/{{this.type}}/{{this.id}}">
                {{this.createdAt}}
            </a>
            <span>
                {{#each this.tags}}
                <a class="tag" href="/tags/{{this}}">{{this}}</a>
                {{/each}}
            </span>
        </p>
    </div>
    {{/each}}
</div>