Skip to content

Commit

Permalink
Merge pull request #230 from MrGreensWorkshop/bugfix_giscus_on_chines…
Browse files Browse the repository at this point in the history
…e_blog_pages

Giscus fix for Chinese blog post pages
  • Loading branch information
MrGreensWorkshop authored Jul 19, 2024
2 parents 17dfb85 + 4c93636 commit 3063fe8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions _includes/default/giscus-scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@
{%- else %}
"data-theme": "{{ site.data.conf.posts.comments.giscus.theme-light }}",
{%- endif %}
{%- if lng_code == "zh" %}
"data-lang": "{{ lng_code }}-{{ site.data.lang[lng_code].lng.country }}",
{%- else %}
"data-lang": "{{ lng_code }}",
{%- endif %}
{%- if site.data.conf.posts.comments.giscus.loading != nil
and site.data.conf.posts.comments.giscus.loading != empty
%}
Expand Down

0 comments on commit 3063fe8

Please sign in to comment.