diff options
author | Mark Powers <markppowers0@gmail.com> | 2020-11-15 21:43:36 -0600 |
---|---|---|
committer | Mark Powers <markppowers0@gmail.com> | 2020-11-15 21:43:36 -0600 |
commit | 63668ca89f055b2233a8aa6caf4213853918d68d (patch) | |
tree | 0d9bf673daaadba36b70a3b7651a1c46c074e938 /src/templates/feed.html | |
parent | 104d9fd314d6f8650c8e032164c7db00c869eea7 (diff) |
Switch to handlebars for templating
Diffstat (limited to 'src/templates/feed.html')
-rw-r--r-- | src/templates/feed.html | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/templates/feed.html b/src/templates/feed.html new file mode 100644 index 0000000..2158f3e --- /dev/null +++ b/src/templates/feed.html @@ -0,0 +1,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>
\ No newline at end of file |