diff options
author | Valentin Popov <valentin@popov.link> | 2023-05-23 23:53:28 +0300 |
---|---|---|
committer | Valentin Popov <valentin@popov.link> | 2023-05-23 23:53:28 +0300 |
commit | cd4719cbe488badccbac0018d9432d16b9dec4a3 (patch) | |
tree | ee056d0ac758c05a2a3bd8ee6b0bfa9c498deead | |
parent | e4f1c69aed4239494333c3eed67137d1d282ed4c (diff) | |
download | popov.link-cd4719cbe488badccbac0018d9432d16b9dec4a3.tar.xz popov.link-cd4719cbe488badccbac0018d9432d16b9dec4a3.zip |
Updated the way to connect comments
-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 |