diff options
Diffstat (limited to 'themes/hugo-coder/layouts/partials/posts/utterances.html')
m--------- | themes/hugo-coder | 0 | ||||
-rw-r--r-- | themes/hugo-coder/layouts/partials/posts/utterances.html | 12 |
2 files changed, 12 insertions, 0 deletions
diff --git a/themes/hugo-coder b/themes/hugo-coder deleted file mode 160000 | |||
Subproject 55b2a150f990bc56364dba347bc9acc6aab07be | |||
diff --git a/themes/hugo-coder/layouts/partials/posts/utterances.html b/themes/hugo-coder/layouts/partials/posts/utterances.html new file mode 100644 index 0000000..0feea41 --- /dev/null +++ b/themes/hugo-coder/layouts/partials/posts/utterances.html | |||
@@ -0,0 +1,12 @@ | |||
1 | {{- if isset .Site.Params "utterances" -}} | ||
2 | {{- if and (isset .Site.Params.utterances "repo") (not (eq .Site.Params.utterances.repo "" )) (eq (.Params.disable_comments | default false) false) -}} | ||
3 | <script src="https://utteranc.es/client.js" | ||
4 | repo= "{{ .Site.Params.utterances.repo }}" | ||
5 | issue-term="{{ default "title" .Site.Params.utterances.issueTerm }}" | ||
6 | {{ if isset .Site.Params.utterances "label" }}label="{{ .Site.Params.utterances.label }}"{{ end }} | ||
7 | theme="{{ default "github-light" .Site.Params.utterances.theme }}" | ||
8 | crossorigin="anonymous" | ||
9 | async> | ||
10 | </script> | ||
11 | {{- end -}} | ||
12 | {{- end -}} | ||