Put comments into a partial

* Also removed unnecessary Disqus style (didn't regenerate resources)
This commit is contained in:
Track3 2018-12-30 11:06:38 +08:00
parent 6f864b437d
commit efb0b592a0
4 changed files with 8 additions and 18 deletions

View file

@ -651,19 +651,8 @@ hr.post-end {
}
}
// Disqus
#disqus {
margin-top: 2.5em;
}
.dsq-brlink {
display: block;
text-align: center;
}
// Media Queries
//
@media (min-width: 800px) {
.site-main {
margin-top: 3em;

View file

@ -8,9 +8,9 @@
<div class="content">
{{ .Content }}
</div>
{{- if and .Params.comments .Site.DisqusShortname }}
<div id="disqus" class="thin">
{{ template "_internal/disqus.html" . }}
{{- if .Params.comments }}
<div id="comments" class="thin">
{{ partial "comments.html" . }}
</div>
{{- end }}
</main>

View file

@ -0,0 +1,3 @@
{{- if .Site.DisqusShortname }}
{{ template "_internal/disqus.html" . }}
{{- end }}

View file

@ -50,11 +50,9 @@
</a>
{{- end }}
</div>
{{- if .Site.DisqusShortname }}
<div id="disqus" class="thin">
{{ template "_internal/disqus.html" . }}
<div id="comments" class="thin">
{{ partial "comments.html" . }}
</div>
{{- end }}
</main>
{{ end }}