homepage CLS is now reduced by reserving layout space up front and treating the particle background as a pre-sized enhancement layer.

I made three targeted changes:

 1. themes/openfreebooks/templates/base.html: added a body_class block so templates can declare first-render shell behavior.
 2. themes/openfreebooks/templates/index.html: set homepage body classes to page-home has-particle-background, so the background layering mode is present from first paint (not added later during hydration).
 3. themes/openfreebooks/sass/_layout.scss: reserved in-flow space before hydration with a fixed header shell (#site-header min-height, including mobile override), reserved marquee slot height on home (#marquee min-height), and stabilized page shell sizing (body/home main min-height behavior).
This commit is contained in:
Hananoshika Yomaru 2026-05-21 11:54:23 -07:00
parent c00f82aeb3
commit 057f2bebf2
5 changed files with 38 additions and 10 deletions

View file

@ -14,7 +14,7 @@
</url>
<url>
<loc>https://openfreebooks.org/contributing/</loc>
<lastmod>2026-05-19T12:34:25.000Z</lastmod>
<lastmod>2026-05-21T18:40:42.000Z</lastmod>
</url>
<url>
<loc>https://openfreebooks.org/credits/</loc>