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

@@ -10,8 +10,8 @@
</p>
{% endmacro support %}
{% macro giscus(search_term, translated) %}
{% if translated %}
{% macro giscus(search_term, lang) %}
{% if lang != "en" %}
{% set category = "Post Comments (translated)" %}
{% set category_path = "post-comments-translated" %}
{% else %}
@@ -46,6 +46,7 @@
data-reactions-enabled="1"
data-emit-metadata="1"
data-theme="preferred_color_scheme"
data-lang="{{ lang }}"
crossorigin="anonymous"
async>
</script>