Fix container nav template to render fragment HTML

Templates still used the old container_nav_widgets variable from the
widget system. Updated to render container_nav_html (fragment output)
which the context processor already provides.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
giles
2026-02-25 03:28:36 +00:00
parent b91a58f30a
commit 8680ec37d6
2 changed files with 6 additions and 6 deletions

View File

@@ -1,9 +1,9 @@
{% import 'macros/links.html' as links %}
{# Widget-driven container nav — entries, calendars, markets #}
{% if container_nav_widgets %}
{# Container nav from fragments (calendars, markets) #}
{% if container_nav_html %}
<div class="flex flex-col sm:flex-row sm:items-center gap-2 border-r border-stone-200 mr-2 sm:max-w-2xl"
id="entries-calendars-nav-wrapper">
{% include '_types/post/admin/_nav_entries.html' %}
{{ container_nav_html | safe }}
</div>
{% endif %}

View File

@@ -1,9 +1,9 @@
{% import 'macros/links.html' as links %}
{# Widget-driven container nav — entries, calendars, markets #}
{% if container_nav_widgets %}
{# Container nav from fragments (calendars, markets) #}
{% if container_nav_html %}
<div class="flex flex-col sm:flex-row sm:items-center gap-2 border-r border-stone-200 mr-2 sm:max-w-2xl"
id="entries-calendars-nav-wrapper">
{% include '_types/post/admin/_nav_entries.html' %}
{{ container_nav_html | safe }}
</div>
{% endif %}