Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
mateus2k2 committed Jun 21, 2024
1 parent 5f0f104 commit 0886559
Showing 1 changed file with 6 additions and 29 deletions.
35 changes: 6 additions & 29 deletions overrides/partials/comments.html
Original file line number Diff line number Diff line change
@@ -1,41 +1,17 @@
<!-- {% if page.title != "Home" %}
{% if (page.meta.comments or true) and page.title != "Home" %}

{% set script_src = "https://giscus.app/client.js" %}
{% set repo = "mateus2k2/giscus" %}
{% set repo_id = "R_kgDOMMGa5Q" %}
{% set category = "General" %}
{% set category_id = "DIC_kwDOMMGa5c4CgPIJ" %}
{% set mapping = "pathname" %}
{% set strict = "0" %}
{% set mapping = "specific" %}
{% set strict = "1" %}
{% set reactions_enabled = "1" %}
{% set emit_metadata = "0" %}
{% set input_position = "bottom" %}
{% set theme = "dark" %}

{% if config.theme.language == 'en' %}
{% set lang = "en" %}
{% elif config.theme.language == 'pt-BR' %}
{% set lang = "pt" %}
{% endif %}
<script src="{{ script_src }}"
data-repo="{{ repo }}"
data-repo-id="{{ repo_id }}"
data-category="{{ category }}"
data-category-id="{{ category_id }}"
data-mapping="{{ mapping }}"
data-strict="{{ strict }}"
data-reactions-enabled="{{ reactions_enabled }}"
data-emit-metadata="{{ emit_metadata }}"
data-input-position="{{ input_position }}"
data-theme="{{ theme }}"
data-lang="{{ lang }}"
crossorigin="anonymous"
async>
</script>
{% endif %} -->

{% if (page.meta.comments or true) and page.title != "Home" %}

{% if config.theme.language == 'en' %}
{% set lang = "en" %}
{% set comments = "Comments" %}
Expand All @@ -52,7 +28,8 @@ <h2 id="__comments">{{ comments }}</h2>
data-category="{{ category }}"
data-category-id="{{ category_id }}"
data-mapping="{{ mapping }}"
data-strict="{{ strict }}"
data-term="{{page.url}}"
data-strict="{{strict}}"
data-reactions-enabled="{{ reactions_enabled }}"
data-emit-metadata="{{ emit_metadata }}"
data-input-position="{{ input_position }}"
Expand Down

0 comments on commit 0886559

Please sign in to comment.