From 5fdb8d8f43e15b9581e8320153eb2e8c24cedac8 Mon Sep 17 00:00:00 2001 From: sijanec Date: Tue, 1 Dec 2020 23:50:20 +0100 Subject: =?UTF-8?q?dodal=20mo=C5=BEnost=20komentiranja?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _includes/commentreplyform.html | 18 ++++++++++++++++ _includes/commentsthread.html | 47 +++++++++++++++-------------------------- _includes/main.js | 1 + _includes/main.scss | 1 + 4 files changed, 37 insertions(+), 30 deletions(-) create mode 100644 _includes/commentreplyform.html create mode 120000 _includes/main.js create mode 120000 _includes/main.scss (limited to '_includes') diff --git a/_includes/commentreplyform.html b/_includes/commentreplyform.html new file mode 100644 index 0000000..99ffaf3 --- /dev/null +++ b/_includes/commentreplyform.html @@ -0,0 +1,18 @@ +{% comment %} + argv: thisid,uid + return: html form + langstrings used: comment.taplaceholder, basic.nepodpiraiframe +{% endcomment %} +{% capture return %} +
+ + + + {% comment %} + assign thisid = "comment|" | append: comment.author | append: "|" | append: comment.date + {% endcomment %} + + + +
+{% endcapture %} diff --git a/_includes/commentsthread.html b/_includes/commentsthread.html index 84647f7..2e1119a 100644 --- a/_includes/commentsthread.html +++ b/_includes/commentsthread.html @@ -1,10 +1,7 @@ {% comment %} argv: id_of_object_whose_posts_you_want,__isinathread - return: nothing. outputs html directly. + return: next UID. outputs html directly. {% endcomment %} -{% capture taplaceholder %}Vpišite besedilo komentarja (markdown omogočen). -POMEMBNO: Zaradi tehničnih razlogov (veriga blokov) dokončen izbris komentarja (niti vzdevka avtorja) iz Interneta ni mogoč!{% endcapture %} -{% capture nepodpiraiframe %}Vaš brskalnik ne podpira
iframe
elementa, ki je potreben za vpogled v status oddaje komentarja.{% endcapture %} {% capture editnotice %} Komentar lahko uredi samo tisti, ki ga je napisal. Komentar uredite v brskalniku, v katerem ste ga napisali. Bodisi piškotek bodisi IP naslov mora biti enak prejšnji oddaji komentarja. Če se objavo uredi še naslednjič, se to lahko stori iz katerega koli IP naslova in piškotka, ki se je uporabil pri predhodnih urejanjih.{% endcapture %} {% assign comments = site.data.comments | where: "parent", argv[0] %} @@ -27,7 +24,8 @@ Komentar lahko uredi samo tisti, ki ga je napisal. Komentar uredite v brskalniku V {{ return }} je {{ comment.author || replace: "<", "<" }} komentiral:

- {{ comment.message | replace: "<", "<" | replace: "!", "!" | markdownify }} + {% assign safemsg = comment.message | replace: "<", "<" | replace: "!", "!" %} + {{ safemsg | markdownify }}

@@ -38,36 +36,25 @@ Komentar lahko uredi samo tisti, ki ga je napisal. Komentar uredite v brskalniku odgovori - -