{{/*
  content-single: A content view used to render a single article, displaying
  header, content, footer, associated metadata, as well as disqus if enabled, etc.
*/}}
<section class="content">
<article class="post group">
  {{ .Render "featured" }}
  <div class="content group">
    {{ .Render "content-header" }}
    <div class="post-body group">
      {{ .Content }}
    </div>
    <footer>
      {{ .Render "content-taxonomy-groups" }}
    </footer>
  </div>
</article>
{{/*
{{ .Render "pagination" }}
*/}}
{{ if ne .Site.DisqusShortname "" }}
    {{ if not (in (printf "%#v" .Site.BaseURL) "localhost") }}
        <article class="post">
            {{ template "_internal/disqus.html" . }}
        </article>
    {{ end }}
{{ end }}

</section>

{{/*
  content-single: A content view used to render a single article, displaying
  header, content, footer, associated metadata, as well as disqus if enabled, etc.
*/}}
<section class="content">
<article class="post group">
  {{ .Render "featured" }}
  <div class="content group">
    {{ .Render "content-header" }}
    <div class="post-body group">
      {{ .Content }}
    </div>
    <footer>
      {{ .Render "content-taxonomy-groups" }}
    </footer>
  </div>
</article>
{{/*
{{ .Render "pagination" }}
*/}}
{{ if ne .Site.DisqusShortname "" }}
    {{ if not (in (printf "%#v" .Site.BaseURL) "localhost") }}
      {{ if or (.Params.comment) (and (not (isset .Params "comment")) (eq .Section "post")) }}
          <article class="post">
            {{ template "_internal/disqus.html" . }}
        </article>
      {{ end }}
    {{ end }}
{{ end }}

</section>

Add support for new frontmatter boolean param, 'comment' to turn on/off Disqus embedding for the page.
Add support for new frontmatter boolean param, 'comment' to turn on/off
Disqus embedding for the page.

By default, if Disqus is configured and you aren't on localhost, the
Disqus template will be inserted for pages with section "post" and
will not be inserted otherwise.  If comment is set to true, they'll be
inserted regardless of section, and if set to false will not be
inserted regardless of section.
