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
|
@ -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…
Add table
Add a link
Reference in a new issue