From 314b5336989c84206dc0ad103ea4ed864ff8852e Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Fri, 22 Aug 2025 19:51:15 -0500 Subject: [PATCH] WIP --- assets/css/bobastyle.css | 5 ----- layouts/baseof.html | 8 ++++---- layouts/home.html | 2 ++ layouts/page.html | 24 ++++++++++++------------ 4 files changed, 18 insertions(+), 21 deletions(-) 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 }}