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

Luiz F. A. de Prá
04.09.2020 c600078921bcb0c36d26125cb11015888fb01f8e
Fix isset warning
1 files modified
2 ■■■■■ changed files
layouts/partials/posts/utteranc.html 2 ●●●●● patch | view | raw | blame | history
layouts/partials/posts/utteranc.html
@@ -1,3 +1,4 @@
{{- 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 }}"
@@ -7,3 +8,4 @@
  async>
</script>
{{- end -}}
{{- end -}}