From cd4719cbe488badccbac0018d9432d16b9dec4a3 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 24 May 2023 00:53:28 +0400 Subject: Updated the way to connect comments --- templates/includes/comments.html | 6 +++++- templates/post.html | 2 -- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/templates/includes/comments.html b/templates/includes/comments.html index 9c2bffe..a67fdb0 100644 --- a/templates/includes/comments.html +++ b/templates/includes/comments.html @@ -1 +1,5 @@ - \ No newline at end of file +{% set url = current_url | default(value='/') %} + +{% if url is not containing('.onion') %} + +{% endif %} \ No newline at end of file diff --git a/templates/post.html b/templates/post.html index 3345908..76f15c9 100644 --- a/templates/post.html +++ b/templates/post.html @@ -9,9 +9,7 @@ {{ page.content | safe }} -{% if page.permalink is not containing('.onion') %}
{% include 'includes/comments.html' %}
-{% endif %} {% endblock content %} \ No newline at end of file -- cgit v1.2.3