Open mikaelstaldal opened 8 months ago
In layouts/_default/single.html, there is a div for comments, which creates unnecessary (and IMHO annoying) vertical space if comments are disabled:
layouts/_default/single.html
<div class="mt6 instapaper_ignoref"> {{ if .Site.DisqusShortname }} {{ template "_internal/disqus.html" . }} {{ end }} {{ if .Site.Params.commentoEnable }} {{- partial "commento.html" . -}} {{ end }} </div>
https://github.com/theNewDynamic/gohugo-theme-ananke/blob/master/layouts/_default/single.html#L53
I suggest that this div is only included if any comment system is enabled. Something like this:
{{ if .Site.DisqusShortname }} <div class="mt6 instapaper_ignoref"> {{ template "_internal/disqus.html" . }} </div> {{ end }} {{ if .Site.Params.commentoEnable }} <div class="mt6 instapaper_ignoref"> {{- partial "commento.html" . -}} </div> {{ end }}
In
layouts/_default/single.html
, there is a div for comments, which creates unnecessary (and IMHO annoying) vertical space if comments are disabled:https://github.com/theNewDynamic/gohugo-theme-ananke/blob/master/layouts/_default/single.html#L53
I suggest that this div is only included if any comment system is enabled. Something like this: