fix: contain headshot floats per-bio with .child-entry wrapper#56
Merged
Conversation
After #55 each bio's float-right image bled past the next h2 because the listing template emitted h2 and content as bare siblings — Steven's tall photo extended past his own paragraph and Ian's image with clear:right floated past the entire content area, ending up next to the footer instead of beside Ian's bio. Wrap each child page in <section class="child-entry"> in list.html (the actual template used for section pages — single.html was a red herring) and set display: flow-root so floats are contained per bio. Shrink the headshot to 160x160 (180x180 on mobile) so it fits next to short summary text. [AI-assisted - Claude]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
After #55, Ian's headshot on `/about/people/` ended up next to the footer rather than beside his bio. Root cause: the listing template emits each child's `
` and `` as bare siblings, so Steven's tall float-right photo extended past his own short paragraph; Ian's image with `clear: right` then floated past the entire content area into the footer's row.
- Wrap each child page in `
` in `_default/list.html` (the template actually used for section pages — `single.html` was a red herring from an earlier debug pass).
- Set `.child-entry { display: flow-root }` so each bio's float is contained.
- Shrink the headshot to 160×160 (180×180 on mobile) so it fits comfortably beside short summary text.
Fix:
Verified at 375 / 600 / 768 / 1024 / 1280 / 1600 px on a local Hugo build — at every desktop width both images now align to the same right edge, each beside its own bio.
[AI-assisted - Claude]