Add nav-tree fragment: blog renders nav for all apps
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 1m5s

Blog now provides a nav-tree fragment at /internal/fragments/nav-tree
that accepts app_name and path params for correct aria-selected
highlighting. Blog itself consumes this fragment alongside cart-mini
and auth-menu in a single concurrent fetch_fragments() call.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
giles
2026-02-24 11:35:02 +00:00
parent 3e11bef978
commit 288b3caf7f
5 changed files with 55 additions and 9 deletions

View File

@@ -24,7 +24,11 @@
{# Desktop nav #}
<nav class="hidden md:flex gap-4 text-sm ml-2 justify-end items-center flex-0">
{% include '_types/root/_nav.html' %}
{% if nav_tree_html %}
{{ nav_tree_html | safe }}
{% else %}
{% include '_types/root/_nav.html' %}
{% endif %}
{# Auth menu — fetched from account app as fragment #}
{% if auth_menu_html %}
{{ auth_menu_html | safe }}