{{ partial "header" . }}

<div class="container clearfix">
    <main role="main" class="content">
        <article class="post">
            <a class="btn home" href="{{ .Site.BaseURL }}" title="{{ .Site.Data.l10n.article.back_to_home }}">&laquo; {{ .Site.Data.l10n.article.back_to_home }}</a>
            {{ partial "article-header" . }}
            {{ .Content}}
            {{ partial "article-share" . }}
        </article>
        {{ with .Site.DisqusShortname }}
        <div class="comments">
            <h3>{{ .Site.Data.l10n.comments.comments }}</h3>
            {{ template "_internal/disqus.html" . }}
        </div>
        {{ end }}
    </main>
    {{ partial "author" . }}
</div>

{{ partial "footer" . }}

{{ partial "header" . }}

<div class="container clearfix">
    <main role="main" class="content">
        <article class="post">
            <a class="btn home" href="{{ .Site.BaseURL }}" title="{{ .Site.Data.l10n.article.back_to_home }}">&laquo; {{ .Site.Data.l10n.article.back_to_home }}</a>
            {{ partial "article-header" . }}
            {{ .Content}}
            {{ partial "article-share" . }}
        </article>
        {{ if .Site.DisqusShortname }}
        <div class="comments">
            <h3>{{ .Site.Data.l10n.comments.comments }}</h3>
            {{ template "_internal/disqus.html" . }}
        </div>
        {{ end }}
    </main>
    {{ partial "author" . }}
</div>

{{ partial "footer" . }}

Use if instead of with to avoid template error
Use if instead of with to avoid template error

When displaying the comments, Hugo would not generate the posts because of an error:
```
ERROR 2017/09/03 17:39:37 Error while rendering "page": template: theme/_default/single.html:13:24: executing "theme/_default/single.html" at <.Site.Data.l10n.comm...>: can't evaluate field Site in type string
```

The problem happens because to display disqus comments we wrap the block in a with instead of an if, changing the current context to the `.Site.DisqusShortname` text value. This fixes the error by using a simple `if` instead of `with`