From c600078921bcb0c36d26125cb11015888fb01f8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luiz=20F=2E=20A=2E=20de=20Pr=C3=A1?= Date: Tue, 4 Feb 2020 11:09:34 -0300 Subject: [PATCH] Fix isset warning --- layouts/partials/posts/utteranc.html | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/layouts/partials/posts/utteranc.html b/layouts/partials/posts/utteranc.html index 3da56ea..91184e1 100644 --- a/layouts/partials/posts/utteranc.html +++ b/layouts/partials/posts/utteranc.html @@ -1,9 +1,11 @@ -{{- if and (isset .Site.Params.utteranc "repo") (not (eq .Site.Params.utteranc.repo "" )) (eq (.Params.disable_comments | default false) false) -}} - +{{- 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) -}} + + {{- end -}} {{- end -}}