summaryrefslogtreecommitdiffstats
path: root/_layouts
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
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')
-rw-r--r--_layouts/default.html9
-rw-r--r--_layouts/post.html21
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>