Skip to content

Commit

Permalink
Fix disqus
Browse files Browse the repository at this point in the history
  • Loading branch information
Djordje Atlialp committed Mar 15, 2020
1 parent ee307b8 commit 589eea3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
9 changes: 5 additions & 4 deletions layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,11 @@ <h2 class="post-title"><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
{{- end }}
</div>

<div id="comments" class="thin">
{{- if .Site.DisqusShortname }}

{{- if .Site.DisqusShortname }}
<div id="comments" class="thin">
{{ template "_internal/disqus.html" . }}
{{- end }}
</div>
</div>
{{- end }}
</main>
{{ end }}
8 changes: 4 additions & 4 deletions layouts/posts/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ <h1 class="post-title">
</div>
{{ end }}

{{ if .Params.comments }}
<div id="comments" class="thin">
{{- partial "comments.html" . -}}
{{- if .Site.DisqusShortname }}
<div id="comments" class="thin">
{{ template "_internal/disqus.html" . }}
</div>
{{ end }}
{{- end }}
</main>
{{ end }}

0 comments on commit 589eea3

Please sign in to comment.