diff options
Diffstat (limited to '_layouts/post.html')
-rw-r--r-- | _layouts/post.html | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/_layouts/post.html b/_layouts/post.html index a2b42bd..8ef9181 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -54,12 +54,27 @@ layout: default {% assign postid = "post|" | append: page.url %} {% assign argv = argv | unshift: postid %} <!-- unshift doda na zač. arraya --> {% capture commentsthreadhtml %} - {% include commentsthread.html %} <!-- outputs html directly --> + {% include commentsthread.html %} <!-- outputs html directly and returns next uid / number of comments --> {% endcapture %} +{% assign totalcomments = return %} <h3> - {{ return }} - {% assign argv = ",komentarjev,komentar,komentarja,komentarji" | prepend: return | split: "," %} + {{ totalcomments }} + {% assign argv = ",komentarjev,komentar,komentarja,komentarji" | prepend: totalcomments | split: "," %} {% include slnum.html %} {{ return }} </h3> {{ commentsthreadhtml }} +<label for=checkbox{{ return }} > + <a> + napiši komentar na to objavo + </a> +</label> +<input type=checkbox class=showhide-checkbox id=checkbox{{ return }} /> +<div class=showhide-hiddenelement > + {% assign argv = "" | split: "," %} + {% assign postid = "post|" | append: page.url %} + {% assign argv = argv | unshift: totalcomments %} + {% assign argv = argv | unshift: postid %} <!-- unshift doda na za. arraya --> + {% include commentreplyform.html %} + {{ return }} +</div> |