Fix container nav template to render fragment HTML
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 1m3s
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 1m3s
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:
@@ -1,9 +1,9 @@
|
|||||||
{% import 'macros/links.html' as links %}
|
{% import 'macros/links.html' as links %}
|
||||||
{# Widget-driven container nav — entries, calendars, markets #}
|
{# Container nav from fragments (calendars, markets) #}
|
||||||
{% if container_nav_widgets %}
|
{% 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"
|
<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">
|
id="entries-calendars-nav-wrapper">
|
||||||
{% include '_types/post/admin/_nav_entries.html' %}
|
{{ container_nav_html | safe }}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
{% import 'macros/links.html' as links %}
|
{% import 'macros/links.html' as links %}
|
||||||
{# Widget-driven container nav — entries, calendars, markets #}
|
{# Container nav from fragments (calendars, markets) #}
|
||||||
{% if container_nav_widgets %}
|
{% 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"
|
<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">
|
id="entries-calendars-nav-wrapper">
|
||||||
{% include '_types/post/admin/_nav_entries.html' %}
|
{{ container_nav_html | safe }}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user