Skip to content

fix: float infobox beside article body (Wikipedia-style)#27

Open
EthanThatOneKid wants to merge 2 commits into
mainfrom
fix/infobox-wikipedia-layout
Open

fix: float infobox beside article body (Wikipedia-style)#27
EthanThatOneKid wants to merge 2 commits into
mainfrom
fix/infobox-wikipedia-layout

Conversation

@EthanThatOneKid
Copy link
Copy Markdown
Collaborator

Summary

Fixes #26. Typed pages now render the frontmatter infobox in a Wikipedia-style layout: full-width title, infobox floated top-right beside the body, footer sections unchanged below the article.

Changes

  • Split rendered HTML into wiki-article-title and wiki-article-body
  • Wrap infobox + content in a display: flow-root body container
  • Use <aside class="infobox"> without page-meta footer styles
  • Float infobox right on desktop; stack full width on narrow viewports
  • Add regression test for structure and float CSS

Test plan

  • pytest tests/test_site.py
  • wiki -c docs/wiki.json serve --watch → open /wiki/farzapedia/ and confirm infobox is top-right beside intro text
  • Hard refresh if a prior serve session was cached

Split the page title from the body, wrap the infobox and content in a
flow-root container, and float the infobox right with aside semantics.
Remove page-meta styling from the infobox so footer sections stay full width.
@EthanThatOneKid EthanThatOneKid force-pushed the fix/infobox-wikipedia-layout branch from 42b9837 to 5f505ee Compare June 1, 2026 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Float infobox to the right of article body (Wikipedia-style layout)

1 participant