Skip to content

Commit

Permalink
Add support to customize issue-term (mmistakes#2022)
Browse files Browse the repository at this point in the history
Current we hardcoded the `pathname` for `issue-term` when we are using utterances comment provider.

It would be better for let users customize it by setting a `site.comments.utterances.issue_term` in their `_config.yml`.
  • Loading branch information
huan authored and mmistakes committed Jan 8, 2019
1 parent 29835d7 commit ba025f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _includes/comments-providers/utterances.html
Expand Up @@ -11,10 +11,10 @@
var script = document.createElement('script');
script.setAttribute('src', 'https://utteranc.es/client.js');
script.setAttribute('repo', '{{ site.repository }}');
script.setAttribute('issue-term', 'pathname');
script.setAttribute('issue-term', '{{ site.comments.utterances.issue_term | default: "pathname" }}');
script.setAttribute('theme', '{{ site.comments.utterances.theme | default: "github-light" }}');
script.setAttribute('crossorigin', 'anonymous');

commentContainer.appendChild(script);
})();
</script>
</script>

0 comments on commit ba025f7

Please sign in to comment.