Skip to content

Commit

Permalink
feat: install and configure giscus
Browse files Browse the repository at this point in the history
  • Loading branch information
scv1702 committed Nov 14, 2023
1 parent ddfc649 commit cadedce
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ avatar: "/assets/img/logo.png"
toc: true

comments:
active: # The global switch for posts comments, e.g., 'disqus'. Keep it empty means disable
active: giscus
# The active options are as follows:
disqus:
shortname: # fill with the Disqus shortname. › https://help.disqus.com/en/articles/1717111-what-s-a-shortname
Expand All @@ -89,14 +89,14 @@ comments:
issue_term: # < url | pathname | title | ...>
# Giscus options › https://giscus.app
giscus:
repo: # <gh-username>/<repo>
repo_id:
category:
category_id:
mapping: # optional, default to 'pathname'
input_position: # optional, default to 'bottom'
lang: # optional, default to the value of `site.lang`
reactions_enabled: # optional, default to the value of `1`
repo: Principes-Artis-Mechanicae/Principes-Artis-Mechanicae.github.io
repo_id: R_kgDOKsbmMA
category: Comments
category_id: DIC_kwDOKsbmMM4Ca7sV
mapping: pathname
input_position: bottom
lang: ko
reactions_enabled: 1

# Self-hosted static assets, optional › https://github.com/cotes2020/chirpy-static-assets
assets:
Expand Down
2 changes: 1 addition & 1 deletion _includes/comments/giscus.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
'data-mapping': '{{ site.comments.giscus.mapping | default: 'pathname' }}',
'data-reactions-enabled': '{{ site.comments.giscus.reactions_enabled | default: '1' }}',
'data-emit-metadata': '0',
'data-theme': initTheme,
'data-theme': 'dark',
'data-input-position': '{{ site.comments.giscus.input_position | default: 'bottom' }}',
'data-lang': '{{ site.comments.giscus.lang | default: lang }}',
'data-loading': 'lazy',
Expand Down

0 comments on commit cadedce

Please sign in to comment.