diff options
Diffstat (limited to '_layouts')
-rw-r--r-- | _layouts/default.html | 9 | ||||
-rw-r--r-- | _layouts/post.html | 21 |
2 files changed, 25 insertions, 5 deletions
diff --git a/_layouts/default.html b/_layouts/default.html index e85e731..8611085 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -5,7 +5,11 @@ <title> {{ page.title }} :: {{ site.name }} </title> - <link rel=stylesheet href=/assets/css/styles.css /> + <!-- <link rel=stylesheet href=/assets/css/styles.css /> --> + {% capture mainscss %} + {% include main.scss %} + {% endcapture %} + <style>{{ mainscss | scssify }}</style> <link rel=alternate hreflang=sl type=application/rss+xml href=/feed.xml /> <meta name=viewport content="width=device-width,initial-scale=1.0" /> <link rel="shortcut icon" type=image/x-icon href=/favicon.ico /> @@ -19,6 +23,7 @@ {% include navigation.html %} {{ content }} {% include footer.html %} - <script src=/assets/js/main.js ></script> + <!-- <script src=/assets/js/main.js ></script> --> + <script>{% include main.js %}</script> </body> </html> 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> |