summaryrefslogtreecommitdiffstats
path: root/_layouts/post.html
diff options
context:
space:
mode:
authorsijanec <sijanecantonluka@gmail.com>2020-12-01 23:50:20 +0100
committersijanec <sijanecantonluka@gmail.com>2020-12-01 23:50:20 +0100
commit5fdb8d8f43e15b9581e8320153eb2e8c24cedac8 (patch)
tree05f9192f178fd698c0a62c9582b0c5d5592f6d67 /_layouts/post.html
parentdodal https predlog - hostname fix (diff)
downloadsijanec.eu-5fdb8d8f43e15b9581e8320153eb2e8c24cedac8.tar
sijanec.eu-5fdb8d8f43e15b9581e8320153eb2e8c24cedac8.tar.gz
sijanec.eu-5fdb8d8f43e15b9581e8320153eb2e8c24cedac8.tar.bz2
sijanec.eu-5fdb8d8f43e15b9581e8320153eb2e8c24cedac8.tar.lz
sijanec.eu-5fdb8d8f43e15b9581e8320153eb2e8c24cedac8.tar.xz
sijanec.eu-5fdb8d8f43e15b9581e8320153eb2e8c24cedac8.tar.zst
sijanec.eu-5fdb8d8f43e15b9581e8320153eb2e8c24cedac8.zip
Diffstat (limited to '_layouts/post.html')
-rw-r--r--_layouts/post.html21
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>