Utterances commenting system name corrected (#342)

This commit is contained in:
Clément Pannetier
2020-05-25 15:41:38 +02:00
committed by GitHub
parent 6f8f675f7e
commit 9d1ba9d21d
3 changed files with 12 additions and 12 deletions

View File

@@ -1,11 +0,0 @@
{{- if isset .Site.Params "utteranc" -}}
{{- if and (isset .Site.Params.utteranc "repo") (not (eq .Site.Params.utteranc.repo "" )) (eq (.Params.disable_comments | default false) false) -}}
<script src="https://utteranc.es/client.js"
repo= "{{ .Site.Params.utteranc.repo }}"
issue-term="{{ default "title" .Site.Params.utteranc.issueTerm }}"
theme="{{ default "github-light" .Site.Params.utteranc.theme }}"
crossorigin="anonymous"
async>
</script>
{{- end -}}
{{- end -}}

View File

@@ -0,0 +1,11 @@
{{- if isset .Site.Params "utterances" -}}
{{- if and (isset .Site.Params.utterances "repo") (not (eq .Site.Params.utterances.repo "" )) (eq (.Params.disable_comments | default false) false) -}}
<script src="https://utteranc.es/client.js"
repo= "{{ .Site.Params.utterances.repo }}"
issue-term="{{ default "title" .Site.Params.utterances.issueTerm }}"
theme="{{ default "github-light" .Site.Params.utterances.theme }}"
crossorigin="anonymous"
async>
</script>
{{- end -}}
{{- end -}}

View File

@@ -38,7 +38,7 @@
{{ partial "posts/series.html" . }}
{{ partial "posts/disqus.html" . }}
{{ partial "posts/commento.html" . }}
{{ partial "posts/utteranc.html" . }}
{{ partial "posts/utterances.html" . }}
</footer>
</article>