Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,19 @@ compress_html:

sass:
style: compressed

# Setting a giscus data will enable the comment section on
# pages with `comments: true` in the front matter.
# See documentation for more information: https://giscus.app
giscus:
repo: username/repo
repo_id: R_some_repo_id
category: MyCategory
category_id: DIS_some_category_id
mapping: pathname
strict: 0
reactions_enabled: 1
emit_metadata: 0
input_position: bottom
theme: preferred_color_scheme
lang: en
19 changes: 19 additions & 0 deletions _includes/my-comments.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,22 @@
}
}(window, document);</script>
{% endif %}

{% assign giscus = site.giscus %}
{% if giscus %}
<script src="https://giscus.app/client.js"
data-repo="{{ giscus.repo }}"
data-repo-id="{{ giscus.repo_id }}"
data-category="{{ giscus.category }}"
data-category-id="{{ giscus.category_id }}"
data-mapping="{{ giscus.mapping }}"
data-strict="{{ giscus.strict }}"
data-reactions-enabled="{{ giscus.reactions_enabled }}"
data-emit-metadata="{{ giscus.emit_metadata }}"
data-input-position="{{ giscus.input_position }}"
data-theme="{{ giscus.theme }}"
data-lang="{{ giscus.lang }}"
crossorigin="anonymous"
async>
</script>
{% endif %}