Translate the giscus comment system

This commit is contained in:
Philipp Oppermann
2022-06-07 10:50:35 +02:00
parent 341e05b843
commit 87794f2240
5 changed files with 7 additions and 11 deletions

View File

@@ -17,6 +17,6 @@
<hr>
<section>
<h2 id="comments">Comments</h2>
{{ snippets::giscus(search_term=page.title ~ " (Extra Post)", translated=false) }}
{{ snippets::giscus(search_term=page.title ~ " (Extra Post)", lang=page.lang) }}
</section>
{% endblock after_main %}

View File

@@ -118,12 +118,7 @@
{% else %}
{% set search_term=page.title %}
{% endif %}
{% if page.lang != "en" %}
{% set translated = true %}
{% else %}
{% set translated = false %}
{% endif %}
{{ snippets::giscus(search_term=search_term, translated=translated) }}
{{ snippets::giscus(search_term=search_term, lang=page.lang) }}
{%- if page.lang != "en" %}
<p class="{% if page.extra.rtl %}right-to-left{% endif %}">