Fix isset warning

This commit is contained in:
Luiz F. A. de Prá
2020-02-04 11:09:34 -03:00
parent 922b67b346
commit c600078921

View File

@@ -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) -}} {{- 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" <script src="https://utteranc.es/client.js"
repo= "{{ .Site.Params.utteranc.repo }}" repo= "{{ .Site.Params.utteranc.repo }}"
@@ -7,3 +8,4 @@
async> async>
</script> </script>
{{- end -}} {{- end -}}
{{- end -}}