aboutsummaryrefslogtreecommitdiff
path: root/src/templates/feed.html
blob: d7494a20d0e05543ee92e5d2b36e53bf79dae4d9 (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
25
26
27
<div class="feed">
    {{#each posts}}
    <div class="card">
        {{#if this.showTitle}}
            <h1 class="card-title">{{this.title}}</h1>
        {{/if}}
        <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>