From 68f1ec5961469dbf58caae0e2831873de424760e Mon Sep 17 00:00:00 2001
From: austin
Date: Sun, 26 Jul 2026 22:13:05 -0500
Subject: [PATCH] The classes that were being written and thrown away
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
A sweep for the bug behind the homepage titles found five more of it, because
the mistake is easy and silent: put a class on the tag you write a th:replace
on, and Thymeleaf hands you back the fragment with its own class attribute and
drops yours. Nothing warns, and the page looks nearly right.
catering the divider's mt-10, so the branch mark sat on the paragraph above it
contact mt-4 under both "Our hours" and "Find us" — the same flush headings
the homepage had
footer mt-4 between the address and the hours under it
home text-bakery-800 on the address, which is why "Find us" rendered a
shade darker (bakery-900, inherited from body) than "Our hours" in
the panel beside it
Fixed where the fragments already said it should be: "both fragments take the
classes that vary by where they sit". They now take two — the element's own
class as well as the row's or the link's — so the caller has somewhere to put
this that survives. `divider` takes its spacing the same way.
A class on a th:replace tag now has no reason to exist anywhere in the
templates, and there are none left.
Co-Authored-By: Claude Opus 5 (1M context)
---
src/main/resources/templates/catering.html | 2 +-
src/main/resources/templates/contact.html | 6 ++----
src/main/resources/templates/fragments/footer.html | 5 ++---
src/main/resources/templates/fragments/opening.html | 5 +++--
src/main/resources/templates/fragments/visit.html | 9 +++++++--
src/main/resources/templates/home.html | 5 ++---
6 files changed, 17 insertions(+), 15 deletions(-)
diff --git a/src/main/resources/templates/catering.html b/src/main/resources/templates/catering.html
index 9589318..a1b370a 100644
--- a/src/main/resources/templates/catering.html
+++ b/src/main/resources/templates/catering.html
@@ -17,7 +17,7 @@
mind, and we will bake to it.