From e6e739f8fdf8c57b82b63d56b3dfd0c0ecd26a61 Mon Sep 17 00:00:00 2001 From: tym83 <6355522@gmail.com> Date: Thu, 27 Aug 2026 15:50:41 +0300 Subject: [PATCH] fix(page): render page title and fix top spacing on type:page pages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pages using `type: page` mount their content directly inside `.td-main` with no
wrapper, so Docsy's `.td-main main` fixed-navbar offset never applies and the `.page` top margin collapses. The result: content sits flush against the navbar and no page title is shown — most visible on the Compliance section (index intro and each framework page). - page/single.html + new page/list.html: render the title as

- _page.scss: add collapse-proof padding-top to .page - community.md: drop the redundant body-level '# Community' (title renders it now) Affects Compliance (index + framework pages), Community and Support. Co-Authored-By: Claude Signed-off-by: tym83 <6355522@gmail.com> --- assets/scss/_page.scss | 6 ++++++ content/en/community.md | 2 -- layouts/page/list.html | 10 ++++++++++ layouts/page/single.html | 1 + 4 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 layouts/page/list.html diff --git a/assets/scss/_page.scss b/assets/scss/_page.scss index b94f6f3c..3ad26431 100644 --- a/assets/scss/_page.scss +++ b/assets/scss/_page.scss @@ -3,9 +3,15 @@ } .page { + // `type: page` content mounts directly inside `.td-main` (no
wrapper), + // so Docsy's `.td-main main { padding-top }` navbar offset never applies and the + // top `margin-top` collapses to nothing — the heading ends up under the fixed + // navbar. Use padding-top (collapse-proof) to guarantee breathing room. margin-top: 6rem; + padding-top: 2.5rem; @include media-breakpoint-down(sm) { margin-top: 2rem; + padding-top: 1.5rem; } a { diff --git a/content/en/community.md b/content/en/community.md index 305bdf6d..8f26b6e3 100644 --- a/content/en/community.md +++ b/content/en/community.md @@ -7,8 +7,6 @@ type: "page" weight: 20 --- -# Community - Cozystack is a CNCF project built in the open. Everything below is public and open to anyone — you do not need to be a contributor, a customer, or an expert. ## Talk to us diff --git a/layouts/page/list.html b/layouts/page/list.html new file mode 100644 index 00000000..cb1d246f --- /dev/null +++ b/layouts/page/list.html @@ -0,0 +1,10 @@ +{{ define "main" }} + + +
+{{ partial "version-banner.html" . }} +{{ with .Title }}

{{ . }}

{{ end }} +{{ .Content }} +
+ +{{ end }} diff --git a/layouts/page/single.html b/layouts/page/single.html index 9e62bd1c..cb1d246f 100644 --- a/layouts/page/single.html +++ b/layouts/page/single.html @@ -3,6 +3,7 @@
{{ partial "version-banner.html" . }} +{{ with .Title }}

{{ . }}

{{ end }} {{ .Content }}