All site-level configuration keys are stored as lower case. Therefore, a myParam key-value set in your site configuration file needs to be accessed with {{if isset .Site.Params "myparam"}} and not with {{if isset .Site.Params "myParam"}}. Note that you can still access the same config key with .Site.Params.myParam or .Site.Params.myparam, for example, when using with.
so
(isset .Site.Params "disqusShortname") will always is FALSE
please rewrite is just lowercase, it works well
{{ if and (isset .Site.Params "disqusshortname") (ne .Site.Params.disqusShortname "") }}
See: https://github.com/spf13/hyde/blob/master/layouts/_default/single.html#L12
and https://gohugo.io/functions/isset/
All site-level configuration keys are stored as lower case. Therefore, a myParam key-value set in your site configuration file needs to be accessed with {{if isset .Site.Params "myparam"}} and not with {{if isset .Site.Params "myParam"}}. Note that you can still access the same config key with .Site.Params.myParam or .Site.Params.myparam, for example, when using with.
so
(isset .Site.Params "disqusShortname") will always is FALSE
please rewrite is just lowercase, it works well
{{ if and (isset .Site.Params "disqusshortname") (ne .Site.Params.disqusShortname "") }}