Using if removes the rest of the content in single.html

{{if  .Type "!=" project }}
{{ partial "disqus" . }}
{{ end }}
{{ partial "footer" . }}

Removes the footer too.

How do I use if without remove the rest of the webpage too?

@vyasgiridhar Are you getting any errors logged to the console? Also, project is a string and should be in quotes. Are you setting separate types in your markdown file? Hugo makes assumptions on your content type based on content sections, which are decided by your directory structure. Probably better to just put this in your front matter:

comments: true

Then in your template:

{{if .Params.comments}}
    {{ partial "disqus" . }}
{{ partial "footer" .}}