diff options
Diffstat (limited to 'src/templates')
-rw-r--r-- | src/templates/feed.html | 4 | ||||
-rw-r--r-- | src/templates/header.html | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/templates/feed.html b/src/templates/feed.html index ae3494c..3ea4f16 100644 --- a/src/templates/feed.html +++ b/src/templates/feed.html @@ -21,9 +21,9 @@ <a class="tag" href="/tags/{{this}}">{{this}}</a> {{/each}} </span> - <a class="cool btn btn-secondary" href="/post/like/{{this.type}}/{{this.id}}"> + <span class="cool btn btn-secondary" onclick="likePost('{{this.type}}', {{this.id}})" id="btn_{{this.type}}_{{this.id}}"> 👍 ({{this.likes}}) - </a> + </span> </p> </div> {{/each}} diff --git a/src/templates/header.html b/src/templates/header.html index 2ceebfd..1989b04 100644 --- a/src/templates/header.html +++ b/src/templates/header.html @@ -2,4 +2,4 @@ <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <link rel="icon" href="/favicon.svg"> <link rel="alternate icon" href="/favicon.ico"> - +<script src="/js/like.js"></script> |