Open mikaelstaldal opened 8 months ago
In layouts/index.html, there is a article element for content, which creates unnecessary (and IMHO annoying) vertical space if there is no content to display:
<article class="cf ph3 ph5-l pv3 pv4-l f4 tc-l center measure-wide lh-copy {{ $.Param "text_color" | default "mid-gray" }}"> {{ .Content }} </article>
https://github.com/theNewDynamic/gohugo-theme-ananke/blob/master/layouts/index.html#L2
I suggest that this article element is only included if there is content to display. Something like this:
{{ if .Content }} <article class="cf ph3 ph5-l pv3 pv4-l f4 tc-l center measure-wide lh-copy {{ $.Param "text_color" | default "mid-gray" }}"> {{ .Content }} </article> {{ end }}
In layouts/index.html, there is a article element for content, which creates unnecessary (and IMHO annoying) vertical space if there is no content to display:
https://github.com/theNewDynamic/gohugo-theme-ananke/blob/master/layouts/index.html#L2
I suggest that this article element is only included if there is content to display. Something like this: