add utterances options as hugo params

This commit is contained in:
John Bowdre 2021-12-05 23:07:17 -06:00
parent 484f3c2961
commit 8f0069d3dd
2 changed files with 8 additions and 3 deletions

View file

@ -107,3 +107,8 @@ enable = false # To enable matomo analytics change to `true`.
websiteDomain = "example.com" # Set the domain name of your website, in most cases same as your base URL this is required.
matomoDomain = "matomo.example.com" # Set to Matomo domain
matomoSiteID = "1" # Default is set to 1, change this to the siteid being tracked
[utterances]
repo="jbowdre/jbowdre.github.io" # owner/repo where github comments will happen
issueterm="title" # how will the issues be mapped to the articles
theme="icy-dark" # theme to be applied to comments box

View file

@ -2,9 +2,9 @@
{{ template "_internal/disqus.html" . }}
<!-- add custom comments markup here -->
<script src="https://utteranc.es/client.js"
repo="jbowdre/jbowdre.github.io"
issue-term="title"
theme="github-dark"
repo="{{ $.Site.Params.utterances.repo }}"
issue-term="{{ $.Site.Params.utterances.issueterm }}"
theme="{{ $.Site.Params.utterances.theme }}"
crossorigin="anonymous"
async>
</script>