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

Ryan Kes
29.46.2019 a1afda5d2217eeb98d4169b6bb5854ee488af763
Commento (#196)

* Added rel support

* Added name to contributers file

* Added commento support
1 files modified
1 files added
5 ■■■■■ changed files
layouts/partials/posts/commento.html 4 ●●●● patch | view | raw | blame | history
layouts/posts/single.html 1 ●●●● patch | view | raw | blame | history
layouts/partials/posts/commento.html
New file
@@ -0,0 +1,4 @@
{{- if and (not (eq .Site.Params.commentoUrl "" )) (eq (.Params.disable_comments | default false) false) -}}
<div id="commento"></div>
<script src="{{ .Site.Params.commentoUrl }}/js/commento.js"></script>
{{- end -}}
layouts/posts/single.html
@@ -33,6 +33,7 @@
      <footer>
        {{ partial "posts/series.html" . }}
        {{ partial "posts/disqus.html" . }}
        {{ partial "posts/commento.html" . }}
      </footer>
    </article>