Put comments into a partial
* Also removed unnecessary Disqus style (didn't regenerate resources)
This commit is contained in:
parent
6f864b437d
commit
efb0b592a0
4 changed files with 8 additions and 18 deletions
|
@ -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;
|
||||
|
|
|
@ -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>
|
||||
|
|
3
layouts/partials/comments.html
Normal file
3
layouts/partials/comments.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
{{- if .Site.DisqusShortname }}
|
||||
{{ template "_internal/disqus.html" . }}
|
||||
{{- end }}
|
|
@ -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 }}
|
||||
|
||||
|
|
Loading…
Reference in a new issue