{{ $adsenseEnabled := (and .Site.Params "adsense" (ne .Params.disableAdsense true) ) }} {{ $adsenseAllowedOnPage := (ne .Kind "404" )}} {{- if (and $adsenseEnabled $adsenseAllowedOnPage) }} {{- end }}