Forráskód Böngészése

Utterances commenting system name corrected (#342)

Clément Pannetier 5 éve
szülő
commit
9d1ba9d21d

+ 0 - 11
layouts/partials/posts/utteranc.html

@@ -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 -}}

+ 11 - 0
layouts/partials/posts/utterances.html

@@ -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 -}}

+ 1 - 1
layouts/posts/single.html

@@ -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>