diff --git a/assets/css/bobastyle.css b/assets/css/bobastyle.css index d6508db..1f6f3e0 100644 --- a/assets/css/bobastyle.css +++ b/assets/css/bobastyle.css @@ -293,14 +293,9 @@ body { color: var(--text-0); overflow-wrap: break-word; margin: 0; - display: flex; - flex-direction: column; - align-items: center; - gap: var(--page-margin); } .body-module { - width: 100%; /* without, it collapses inside flexbox for some reason TODO: figure out why */ } .body-module--marginless { diff --git a/layouts/baseof.html b/layouts/baseof.html index d7adc70..1fe47e0 100644 --- a/layouts/baseof.html +++ b/layouts/baseof.html @@ -20,6 +20,10 @@ {{ end }} + {{ block "post-body" . }} + {{/* currently this is only used for related posts */}} + {{ end }} + {{ if or .Site.Copyright .Site.Params.footer }} {{ end }} - - {{ block "post-body" . }} - {{/* currently this is only used for related posts */}} - {{ end }} diff --git a/layouts/home.html b/layouts/home.html index ad9a513..c057f82 100644 --- a/layouts/home.html +++ b/layouts/home.html @@ -5,7 +5,9 @@
{{ end }} +{{ end }} +{{ define "post-body" }} {{ if .Site.Params.homepageLatestPosts }}

diff --git a/layouts/page.html b/layouts/page.html index ed781db..005c9d2 100644 --- a/layouts/page.html +++ b/layouts/page.html @@ -70,17 +70,17 @@ {{ partial "comments.html" . }}

{{ end }} - {{ end }} - - - {{ define "post-body" }} - {{ $related := .Site.RegularPages.Related . | first 10 }} - {{ with $related }} - - {{ end }} {{ end }} + + +{{ define "post-body" }} + {{ $related := .Site.RegularPages.Related . | first 10 }} + {{ with $related }} + + {{ end }} +{{ end }}