Skip to content

feat: shared navbar/footer partials + Packages nav + add Sebastian Funk to team - #26

Merged
seabbs merged 3 commits into
mainfrom
shared-chrome
Aug 13, 2026
Merged

seabbs merged 3 commits into
mainfrom
shared-chrome

Conversation

@seabbs-bot

@seabbs-bot seabbs-bot commented Aug 6, 2026 •

Copy link
Copy Markdown
Collaborator

Makes _includes/navbar.html and _includes/footer.html the single definition of the ecosystem chrome, and consumes them on this site.

  • Shared partials (_includes/navbar.html, _includes/footer.html): hand-rolled Bootstrap navbar and footer. The separate tutorials site renders these same two files via a submodule, so the chrome exists once.
  • This site now consumes them. website.navbar and website.page-footer are deleted from _quarto.yml; the partials are injected via format.html.include-before-body / include-after-body. Without this the partials would have been a second, hand-maintained copy used only by tutorials, which is what an earlier revision of this PR did.
  • Search preserved. website.search: true is what makes Quarto emit search.json and site_libs/quarto-search/*; it does not require a navbar or sidebar. The partial supplies its own <div id="quarto-search">, which quarto-search.js hydrates by id. Search is per-site: each site sets the flag and indexes its own content.
  • Active-page highlighting is done in the partial against location.pathname, marking the current link and its dropdown parent.
  • Navbar: 'Docs' renamed 'Packages' and moved ahead of 'Tutorials' (order: Approaches, Packages, Tutorials, News, Gallery, Guides, Community). Tutorials points at tutorials.epiaware.org.
  • Team: add Sebastian Funk.

Supersedes #24, which pointed the Tutorials entry at tutorials.epiaware.org in the config navbar this PR deletes. Close #24 when this merges.

Merge order: this PR first. EpiAware/tutorials#3 pins a submodule commit from this branch, so once this lands on main that pin must be repointed to the main commit before #3 merges.

Verified with a real quarto render: exactly one navbar and one footer per page across all 18 pages, search assets and index emitted, one #quarto-search div per page, logo path resolving correctly at every directory depth.

This was opened by a bot. Please ping @seabbs for any questions.

… chrome)

Hand-rolled Bootstrap navbar and footer matching the site's config-driven
chrome, as the single source the separate tutorials site renders via a
submodule rather than duplicating. Includes a tiny active-state script.
…stian Funk to team

- navbar 'Docs' -> 'Packages', moving it ahead of 'Tutorials' (applies to
  the main _quarto.yml and the shared navbar.html partial so the tutorials
  submodule stays in step)
- team page: add Sebastian Funk (github.com/sbfnk, scoringrules work)
@github-actions

github-actions Bot commented Aug 6, 2026 •

Copy link
Copy Markdown

📄 Site preview built

The rendered site for this PR is available as the site-preview artifact on this run. Download it and open _site/index.html to review.

The config navbar/page-footer in _quarto.yml duplicated
_includes/navbar.html and _includes/footer.html, and the two had
already drifted (different Tutorials target). Make the partials the
only chrome definition, consumed by both this site and the tutorials
site's submodule copy.

- Remove website.navbar and website.page-footer from _quarto.yml;
  inject the partials via format.html.include-before-body/
  include-after-body instead.
- Add website.search: true so Quarto still emits search.json and the
  quarto-search JS/assets with no navbar/sidebar config driving them.
- Add a `#quarto-search` div to navbar.html; quarto-search.js hydrates
  any element with that id regardless of where it lives in the DOM.
  Each site sets search: true independently, so results stay
  per-site.
- Extend the active-link script to match location.pathname against
  each nav link's own absolute href on the main site (previously only
  the tutorials host got active-state handling), including dropdown
  parents.
- Add Sebastian Funk's LSHTM profile link to team.qmd, matching Sam
  Abbott's card (verified 200: lshtm.ac.uk/aboutus/people/
  funk.sebastian).

Verified with a full `quarto render`: exactly one navbar and one
footer per page at every depth (root, approaches/, news/posts/),
search.json/site_libs/quarto-search assets present, nav/footer/logo
links resolve correctly at depth (Quarto rewrites the root-relative
logo src per page depth; nav links are already absolute so they are
unaffected by depth).
@seabbs
seabbs merged commit 9ee2b2b into main Aug 13, 2026
3 checks passed
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.

2 participants