Skip to content

feat: site design refresh - #147

Merged
adrhill merged 11 commits into
mainfrom
ah/jc26-redesign
Aug 15, 2026
Merged

feat: site design refresh#147
adrhill merged 11 commits into
mainfrom
ah/jc26-redesign

Conversation

@adrhill

@adrhill adrhill commented Aug 15, 2026

Copy link
Copy Markdown
Collaborator

Follow-up to the Zola migration (#146), which kept the old Franklin look to keep the diff small.
This PR refreshes the design while trying to keep the "old 2015 blog post" look. ;)

  • Dark mode: The site now has light and dark themes,
    instead of the previous inconsistent theme.
  • CSS refactor: franklin.css, poole_hyde.css, custom.css, ansi.css and search.css
    (and the inline <style> block in base.html) are replaced by two files:
    • css/site.css — everything but code blocks
    • css/code.css — block chrome, language chips, ANSI colors
  • Scrollspy: the section currently being read is highlighted in the sidebar's section list.
    It marks the last heading above the reading line,
    reusing each heading's scroll-margin-top so the threshold matches
    both the desktop and mobile-topbar offsets.
  • In-content TOC is now hidden whenever the sidebar is on screen,
    since the sidebar already lists the same headings.
    It reappears in the mobile layout, where the sidebar is behind the drawer.
  • Mobile layout: The stacked mobile layout (sidebar dumped above the content) is replaced by
    a fixed top bar with a hamburger button, the site title, and a search button.
  • Logo: the logo got some minor tweaks and is now also used as the favicon.

adrhill and others added 11 commits August 15, 2026 14:03
- consolidate the poole_hyde/franklin/custom/search/ansi stylesheets
  into token-driven css/site.css and css/code.css
- add a theme toggle (system preference default, persisted override,
  no-flash inline script); switch Zola highlighting to class-based
  giallo with github-light/github-dark and per-theme ANSI palettes
- restyle the sidebar as a theme-following panel; replace the stacked
  mobile layout with a top bar and slide-in drawer
- restyle admonitions with tinted headers in the four Julia brand
  colors and add a blue 'note' type

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
A scrollspy in ui.js marks the last heading above the reading line,
reusing each heading's scroll-margin-top so the threshold matches
both the desktop and mobile-topbar offsets.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The title was its own paragraph above the body, costing a line per box.
It is now a span glued to the front of the body so the markdown pass folds
both into one paragraph, and the padding moves from the title/body onto the
box itself.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@adrhill
adrhill marked this pull request as ready for review August 15, 2026 17:01
@adrhill
adrhill merged commit 5f225f2 into main Aug 15, 2026
2 checks passed
@adrhill
adrhill deleted the ah/jc26-redesign branch August 15, 2026 17:02
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.

1 participant