feat: add recent-comments widget to all sidebar templates

Add recent-comments widget case to data-driven routers in sidebar.njk
and homepage-sidebar.njk (was missing). Add to fallback defaults in
both sidebar.njk and blog-sidebar.njk so it shows without homepage
builder configuration.
This commit is contained in:
Ricardo
2026-02-21 22:22:50 +01:00
parent fa7bfb26ea
commit 0450ae523b
3 changed files with 8 additions and 0 deletions
+1
View File
@@ -65,4 +65,5 @@
{% include "components/widgets/webmentions.njk" %}
{% include "components/widgets/share.njk" %}
{% include "components/widgets/subscribe.njk" %}
{% include "components/widgets/recent-comments.njk" %}
{% endif %}
@@ -25,6 +25,8 @@
</div>
{% elif widget.type == "webmentions" %}
{% include "components/widgets/webmentions.njk" %}
{% elif widget.type == "recent-comments" %}
{% include "components/widgets/recent-comments.njk" %}
{% elif widget.type == "custom-html" %}
{# Custom content widget #}
{% set wConfig = widget.config or {} %}
+5
View File
@@ -26,6 +26,8 @@
{% include "components/widgets/categories.njk" %}
{% elif widget.type == "subscribe" %}
{% include "components/widgets/subscribe.njk" %}
{% elif widget.type == "recent-comments" %}
{% include "components/widgets/recent-comments.njk" %}
{% elif widget.type == "search" %}
<div class="sidebar-widget">
<h3 class="text-sm font-semibold text-surface-600 dark:text-surface-400 uppercase tracking-wide mb-3">Search</h3>
@@ -77,6 +79,9 @@
{% include "components/widgets/feedland.njk" %}
{% endif %}
{# Recent Comments #}
{% include "components/widgets/recent-comments.njk" %}
{# Categories/Tags #}
{% include "components/widgets/categories.njk" %}
{% endif %}