From 667659bd3083c7b53c88d8e2af7543ea3f4964d7 Mon Sep 17 00:00:00 2001 From: Brummel Date: Thu, 21 May 2026 12:19:21 +0200 Subject: [PATCH] fix(markup): wrap section child-page content in outer

to match live MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit text.html.twig in the live theme wraps the rendered markdown in `

{{ content }}

`. The outer

auto-closes on the first inner

, yielding a leading empty

with margin-bottom 10px — that's what makes the first float-right image align with the first text line on the services pages. Without the wrap the image starts 10px higher than on live. --- templates/section.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/templates/section.html b/templates/section.html index 527f28e..3bb6e0a 100644 --- a/templates/section.html +++ b/templates/section.html @@ -27,7 +27,13 @@ {{ st::section_title(title=page.title, anchor=page.extra.anchor | default(value=page.slug)) }}
- {{ page.content | safe }} + {# Live's text.html.twig wraps the rendered markdown in + `

{{ content }}

`. The browser auto-closes the outer +

on the first inner

, leaving an empty

at + the top of each section — which adds the 10px margin that + aligns the first float-right image with the first text + line. #} +

{{ page.content | safe }}