diff options
-rw-r--r-- | templates/includes/comments.html | 6 | ||||
-rw-r--r-- | 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 @@ -<script async crossorigin="anonymous" data-category-id="DIC_kwDOIYDdA84CWSzD" data-category="Announcements" data-emit-metadata="0" data-input-position="bottom" data-lang="en" data-loading="lazy" data-mapping="title" data-reactions-enabled="1" data-repo-id="R_kgDOIYDdAw" data-repo="valentineus/homepage" data-strict="1" data-theme="transparent_dark" src="https://giscus.app/client.js"></script>
\ No newline at end of file +{% set url = current_url | default(value='/') %} + +{% if url is not containing('.onion') %} +<script async crossorigin="anonymous" data-category-id="DIC_kwDOIYDdA84CWSzD" data-category="Announcements" data-emit-metadata="0" data-input-position="bottom" data-lang="en" data-loading="lazy" data-mapping="title" data-reactions-enabled="1" data-repo-id="R_kgDOIYDdAw" data-repo="valentineus/homepage" data-strict="1" data-theme="transparent_dark" src="https://giscus.app/client.js"></script> +{% 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 }} </section> -{% if page.permalink is not containing('.onion') %} <section> {% include 'includes/comments.html' %} </section> -{% endif %} {% endblock content %}
\ No newline at end of file |