Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented Giscus commenting module and modified params.yaml for all starters #2830

Merged
merged 4 commits into from
Sep 16, 2022
Merged
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
19 changes: 19 additions & 0 deletions modules/wowchemy/layouts/partials/comments/giscus.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{{ if site.Params.features.comment.giscus }}
{{ $config := site.Params.features.comment.giscus }}
<script src="https://giscus.app/client.js"
data-repo="{{$config.repo}}"
data-repo-id="{{$config.repo_id}}"
data-category="{{$config.category}}"
data-category-id="{{$config.category_id}}"
data-mapping="{{ $config.mapping | default "pathname" }}"
data-strict="0"
data-reactions-enabled="1"
data-emit-metadata="0"
data-input-position="top"
data-theme="{{ $config.theme | default "preferred_color_scheme" }}"
data-lang="{{ $config.language_code | default "en" }}"
data-loading="lazy"
crossorigin="anonymous"
async>
</script>
{{ end }}
5 changes: 5 additions & 0 deletions starters/academic/config/_default/params.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ features:
show_count: true
commento:
url: ''
giscus:
gcushen marked this conversation as resolved.
Show resolved Hide resolved
repo: ''
repo_id: ''
category: ''
category_id: ''
search:
provider: wowchemy
algolia:
Expand Down
5 changes: 5 additions & 0 deletions starters/blog/config/_default/params.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ features:
show_count: true
commento:
url: ''
giscus:
repo: ''
repo_id: ''
category: ''
category_id: ''
search:
provider: wowchemy
algolia:
Expand Down
5 changes: 5 additions & 0 deletions starters/course/config/_default/params.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ features:
show_count: true
commento:
url: ''
giscus:
repo: ''
repo_id: ''
category: ''
category_id: ''
search:
provider: wowchemy
algolia:
Expand Down
5 changes: 5 additions & 0 deletions starters/documentation/config/_default/params.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ features:
show_count: true
commento:
url: ''
giscus:
repo: ''
repo_id: ''
category: ''
category_id: ''
search:
provider: wowchemy
algolia:
Expand Down
5 changes: 5 additions & 0 deletions starters/minimal/config/_default/params.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ features:
show_count: true
commento:
url: ''
giscus:
repo: ''
repo_id: ''
category: ''
category_id: ''
search:
provider: wowchemy
algolia:
Expand Down
5 changes: 5 additions & 0 deletions starters/notes/config/_default/params.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ features:
show_count: true
commento:
url: ''
giscus:
repo: ''
repo_id: ''
category: ''
category_id: ''
search:
provider: wowchemy
algolia:
Expand Down
5 changes: 5 additions & 0 deletions starters/portfolio/config/_default/params.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ features:
show_count: true
commento:
url: ''
giscus:
repo: ''
repo_id: ''
category: ''
category_id: ''
search:
provider: ''
algolia:
Expand Down
5 changes: 5 additions & 0 deletions starters/research-group/config/_default/params.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ features:
show_count: true
commento:
url: ''
giscus:
repo: ''
repo_id: ''
category: ''
category_id: ''
search:
provider: wowchemy
algolia:
Expand Down