Skip to content

Commit

Permalink
Added optional label attribute (#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 committed Oct 19, 2021
1 parent 000dc3b commit 642ec7b
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
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
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 642ec7b

Please sign in to comment.