aboutsummaryrefslogtreecommitdiff
path: root/src/templates/feed.html
diff options
context:
space:
mode:
authorMark Powers <mark@marks.kitchen>2021-02-23 20:09:29 -0600
committerMark Powers <mark@marks.kitchen>2021-02-23 20:09:29 -0600
commit8a0a3a00e75dc2351a7218d0059b87f7e9345871 (patch)
tree180a3dc0065db849301d0e87c11f129475c02eb5 /src/templates/feed.html
parent4ed0b48232f2d0fdaa1ed85f243119608d2d5caf (diff)
parent5b5dc610bc0da17fd006982de50b4dc74b134a54 (diff)
Merge branch 'master' of marks.kitchen:/srv/git/markskitchen
Diffstat (limited to 'src/templates/feed.html')
-rw-r--r--src/templates/feed.html8
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}}">
+ &#128077; ({{this.likes}})
+ </span>
</p>
</div>
{{/each}}
-</div> \ No newline at end of file
+</div>