Update related posts design and move comments above it

This commit is contained in:
2022-05-04 18:45:02 -05:00
parent 0877a9d400
commit 76b0383c2c
2 changed files with 51 additions and 19 deletions

View File

@ -68,6 +68,12 @@
{{ partial "share.html" . }}
{{ end }}
{{ if .Params.comments }}
<div class="comments">
{{ partial "comments.html" . }}
</div>
{{ end }}
{{ $related := .Site.RegularPages.Related . | first 10 }}
{{ with $related }}
<div class="related">
@ -78,13 +84,6 @@
{{ .Render "summary/post" }}
{{ end }}
</div>
<hr>
</div>
{{ end }}
{{ if .Params.comments }}
<div class="comments">
{{ partial "comments.html" . }}
</div>
{{ end }}
{{ end }}