mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Translate the giscus comment system
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user