Skip to content

Commit 642ec7b

Browse files
authoredOct 19, 2021
Added optional label attribute (mmistakes#3128)
Added label attribute as per utterances optional label setting.
1 parent 000dc3b commit 642ec7b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed
 

‎_includes/comments-providers/utterances.html

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
script.setAttribute('src', 'https://utteranc.es/client.js');
1313
script.setAttribute('repo', '{{ site.repository }}');
1414
script.setAttribute('issue-term', '{{ site.comments.utterances.issue_term | default: "pathname" }}');
15+
{% if site.comments.utterances.label %}script.setAttribute('label', '{{ site.comments.utterances.label }}');{% endif %}
1516
script.setAttribute('theme', '{{ site.comments.utterances.theme | default: "github-light" }}');
1617
script.setAttribute('crossorigin', 'anonymous');
1718

‎docs/_docs/05-configuration.md

+1
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,7 @@ comments:
423423
utterances:
424424
theme: "github-light" # "github-dark"
425425
issue_term: "pathname"
426+
label: "comment" # Optional - must be existing label.
426427
```
427428

428429
#### giscus comments

0 commit comments

Comments
 (0)
Please sign in to comment.