blob: ae3494c16ac22b2e71ddf09fed25c317629084ad (
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
28
29
30
|
<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>
<a class="cool btn btn-secondary" href="/post/like/{{this.type}}/{{this.id}}">
👍 ({{this.likes}})
</a>
</p>
</div>
{{/each}}
</div>
|