mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-20 07:57:49 +00:00
Move comment threads for translated posts to separate category
Avoids that a search for the post title returns a thread for a translated post.
This commit is contained in:
@@ -118,7 +118,12 @@
|
||||
{% else %}
|
||||
{% set search_term=page.title %}
|
||||
{% endif %}
|
||||
{{ snippets::giscus(search_term=search_term) }}
|
||||
{% if page.lang != "en" %}
|
||||
{% set translated = true %}
|
||||
{% else %}
|
||||
{% set translated = false %}
|
||||
{% endif %}
|
||||
{{ snippets::giscus(search_term=search_term, translated=translated) }}
|
||||
|
||||
{%- if page.lang != "en" %}
|
||||
<p class="{% if page.extra.rtl %}right-to-left{% endif %}">
|
||||
|
||||
Reference in New Issue
Block a user