diff options
Diffstat (limited to 'src/templates/feed.html')
-rw-r--r-- | src/templates/feed.html | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/templates/feed.html b/src/templates/feed.html index 2158f3e..3ea4f16 100644 --- a/src/templates/feed.html +++ b/src/templates/feed.html @@ -1,6 +1,9 @@ <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}} @@ -18,7 +21,10 @@ <a class="tag" href="/tags/{{this}}">{{this}}</a> {{/each}} </span> + <span class="cool btn btn-secondary" onclick="likePost('{{this.type}}', {{this.id}})" id="btn_{{this.type}}_{{this.id}}"> + 👍 ({{this.likes}}) + </span> </p> </div> {{/each}} -</div>
\ No newline at end of file +</div> |