Skip to content

Commit

Permalink
Merge pull request #1230 from phil-opp/fix-category-id
Browse files Browse the repository at this point in the history
Fix: Use correct category ID for comment threads of translated posts
  • Loading branch information
phil-opp committed Jun 25, 2023
2 parents c728cf8 + f0fe392 commit e2a4464
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion blog/templates/snippets.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@
{% macro giscus(search_term, lang) %}
{% if lang != "en" %}
{% set category = "Post Comments (translated)" %}
{% set category_id = "DIC_kwDOAlvePc4CPg4c" %}
{% set category_path = "post-comments-translated" %}
{% else %}
{% set category = "Post Comments" %}
{% set category_id = "MDE4OkRpc2N1c3Npb25DYXRlZ29yeTMzMDE4OTg1" %}
{% set category_path = "post-comments" %}
{% endif %}

Expand All @@ -36,7 +38,7 @@
data-repo="phil-opp/blog_os"
data-repo-id="MDEwOlJlcG9zaXRvcnkzOTU3NTEwMQ=="
data-category="{{ category }}"
data-category-id="MDE4OkRpc2N1c3Npb25DYXRlZ29yeTMzMDE4OTg1"
data-category-id="{{ category_id }}"
{% if search_term is number %}
data-mapping="number"
{% else %}
Expand Down

0 comments on commit e2a4464

Please sign in to comment.