summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2022-06-02 18:28:45 +0200
committerAnton Luka Šijanec <anton@sijanec.eu>2022-06-02 18:28:45 +0200
commit7196f9eb161121acf2b9de27b534d9fb74e35990 (patch)
tree8a56a3c82ca52af073e52cfe0fc071fd4ef2eb0f
parentb (diff)
downloadsijanec.eu-7196f9eb161121acf2b9de27b534d9fb74e35990.tar
sijanec.eu-7196f9eb161121acf2b9de27b534d9fb74e35990.tar.gz
sijanec.eu-7196f9eb161121acf2b9de27b534d9fb74e35990.tar.bz2
sijanec.eu-7196f9eb161121acf2b9de27b534d9fb74e35990.tar.lz
sijanec.eu-7196f9eb161121acf2b9de27b534d9fb74e35990.tar.xz
sijanec.eu-7196f9eb161121acf2b9de27b534d9fb74e35990.tar.zst
sijanec.eu-7196f9eb161121acf2b9de27b534d9fb74e35990.zip
Diffstat (limited to '')
-rw-r--r--_config.yml1
-rw-r--r--_layouts/post.html2
-rw-r--r--api/php/api.php4
3 files changed, 6 insertions, 1 deletions
diff --git a/_config.yml b/_config.yml
index 603e22e..0299d60 100644
--- a/_config.yml
+++ b/_config.yml
@@ -1,4 +1,5 @@
name: Anton Luka Šijanec
+comments: false
long_date_format: "%A, %d. %B %Y %H:%M:%S"
short_date_format: "%d. %m. %Y"
short_datetime_format: "%d. %m. %Y ob %H:%M:%S"
diff --git a/_layouts/post.html b/_layouts/post.html
index 8ef9181..c6d1215 100644
--- a/_layouts/post.html
+++ b/_layouts/post.html
@@ -47,6 +47,7 @@ layout: default
{% endif %}
<hr>
+{% if site.comments %}
<h2>
kometarji
</h2>
@@ -78,3 +79,4 @@ layout: default
{% include commentreplyform.html %}
{{ return }}
</div>
+{% endif %}
diff --git a/api/php/api.php b/api/php/api.php
index d274cee..348d73a 100644
--- a/api/php/api.php
+++ b/api/php/api.php
@@ -1,5 +1,7 @@
<?php
- // pisal bom v PHPju, ker se mi res ne da zajebavat s Cjem
+ http_response_code(500);
+ header("Content-Type: text/plain");
+ exit("Komentiranje sem ukinil.\n");
$commentsfile = "comments.yml";
switch ($_REQUEST["m"]) {
case "commentreply":