How to conditionally load a sidebar?

I’m trying to load a sidebar based on the current section…

In my default section template I’ve tried.

{{ if isset "Section" "blog" }}
  {{ partial "blog/sidebar.html" . }}
{{ end }}

{{ if isset .Data.Pages "Section" "blog" }}
  {{ partial "blog/sidebar.html" . }}
{{ end }}

and a few other combinations…

Any advice?

Let’s try this:

{{ if .Section | eq "blog" }}
    // do something
{{ end }}