Skip to content

Commit

Permalink
Added optional label attribute (mmistakes#3128)
Browse files Browse the repository at this point in the history
Added label attribute as per utterances optional label setting.
  • Loading branch information
JohnScottUK authored Oct 19, 2021
1 parent c5d0660 commit 079d804
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions _includes/comments-providers/utterances.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
script.setAttribute('src', 'https://utteranc.es/client.js');
script.setAttribute('repo', '{{ site.repository }}');
script.setAttribute('issue-term', '{{ site.comments.utterances.issue_term | default: "pathname" }}');
{% if site.comments.utterances.label %}script.setAttribute('label', '{{ site.comments.utterances.label }}');{% endif %}
script.setAttribute('theme', '{{ site.comments.utterances.theme | default: "github-light" }}');
script.setAttribute('crossorigin', 'anonymous');

Expand Down
1 change: 1 addition & 0 deletions docs/_docs/05-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,7 @@ comments:
utterances:
theme: "github-light" # "github-dark"
issue_term: "pathname"
label: "comment" # Optional - must be existing label.
```

#### giscus comments
Expand Down

0 comments on commit 079d804

Please sign in to comment.