summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
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":