Skip to content

v0.1.4 - split sidebar for mobile read-order

Choose a tag to compare

@pszypowicz pszypowicz released this 22 Apr 10:47

Changed

  • Split sidebar into two partials so mobile readers see articles
    before taxonomy. Primary widgets (about, toc) render in
    <aside class="sidebar"> above <main>; secondary widgets render
    in <aside class="sidebar-bot"> below it. On desktop, a
    grid-template-areas layout pins both asides to the left column,
    preserving the previous visual.
  • Widgets opt into the secondary block with position = "bot" in
    site config. Anything without a position stays primary, so the
    change is source-compatible for existing sites.

Added

  • layouts/_partials/sidebar-bot.html. Only emits an <aside> when
    the current scope has at least one bot widget.