Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ enableEmoji = true # Shorthand emojis in content files - https://gohugo.io/func
footerCopyright = ' &#183; <a href="https://creativecommons.org/licenses/by-nc/4.0/" target="_blank" rel="noopener">CC BY-NC 4.0</a>'
# bgImg = "" # Homepage background-image URL

# Comments using https://utteranc.es
# [params.utterances]
# repo = "repo/path"
# theme = "github-dark"
# issueTerm = "pathname"
# label="comments"

# Prefix of link to the git commit detail page. GitInfo must be enabled.
# gitUrl = "https://github.com/username/repository/commit/"

Expand Down
10 changes: 10 additions & 0 deletions layouts/partials/comments.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
{{- if .Site.DisqusShortname }}
{{ template "_internal/disqus.html" . }}
{{- end }}

{{ if .Site.Params.utterances }}
<script src="https://utteranc.es/client.js"
repo="{{.Site.Params.utterances.repo}}"
issue-term="{{.Site.Params.utterances.issueTerm | default "pathname"}}"
theme="{{.Site.Params.utterances.theme | default "github-dark"}}"
crossorigin="anonymous"
async>
</script>
{{ end }}
3 changes: 2 additions & 1 deletion theme.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ features = [
"featured image",
"social icons",
"google analytics",
"disqus"
"disqus",
"utterances"
]
min_version = 0.43

Expand Down