mirror of https://github.com/luizdepra/hugo-coder.git

Clément Pannetier
25.41.2020 9d1ba9d21d2d19bfe2e4f2557fb22cc1ed7f09fb
Utterances commenting system name corrected (#342)

1 files deleted
1 files modified
1 files added
24 ■■■■ changed files
layouts/partials/posts/utteranc.html 11 ●●●●● patch | view | raw | blame | history
layouts/partials/posts/utterances.html 11 ●●●●● patch | view | raw | blame | history
layouts/posts/single.html 2 ●●● patch | view | raw | blame | history
layouts/partials/posts/utteranc.html
File was deleted
layouts/partials/posts/utterances.html
New 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 -}}
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>