From 9d1ba9d21d2d19bfe2e4f2557fb22cc1ed7f09fb Mon Sep 17 00:00:00 2001
From: Clément Pannetier <35581688+clement-pannetier@users.noreply.github.com>
Date: Mon, 25 May 2020 13:41:38 +0000
Subject: [PATCH] Utterances commenting system name corrected (#342)

---
 /dev/null                              |   11 -----------
 layouts/posts/single.html              |    2 +-
 layouts/partials/posts/utterances.html |   11 +++++++++++
 3 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/layouts/partials/posts/utteranc.html b/layouts/partials/posts/utteranc.html
deleted file mode 100644
index 91184e1..0000000
--- a/layouts/partials/posts/utteranc.html
+++ /dev/null
@@ -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 -}}
diff --git a/layouts/partials/posts/utterances.html b/layouts/partials/posts/utterances.html
new file mode 100644
index 0000000..9e40a43
--- /dev/null
+++ b/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 -}}
diff --git a/layouts/posts/single.html b/layouts/posts/single.html
index 1e7d064..63e88d9 100644
--- a/layouts/posts/single.html
+++ b/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>
 

--
Gitblit v1.10.0