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:
@@ -65,4 +65,5 @@
|
|||||||
{% include "components/widgets/webmentions.njk" %}
|
{% include "components/widgets/webmentions.njk" %}
|
||||||
{% include "components/widgets/share.njk" %}
|
{% include "components/widgets/share.njk" %}
|
||||||
{% include "components/widgets/subscribe.njk" %}
|
{% include "components/widgets/subscribe.njk" %}
|
||||||
|
{% include "components/widgets/recent-comments.njk" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
@@ -25,6 +25,8 @@
|
|||||||
</div>
|
</div>
|
||||||
{% elif widget.type == "webmentions" %}
|
{% elif widget.type == "webmentions" %}
|
||||||
{% include "components/widgets/webmentions.njk" %}
|
{% include "components/widgets/webmentions.njk" %}
|
||||||
|
{% elif widget.type == "recent-comments" %}
|
||||||
|
{% include "components/widgets/recent-comments.njk" %}
|
||||||
{% elif widget.type == "custom-html" %}
|
{% elif widget.type == "custom-html" %}
|
||||||
{# Custom content widget #}
|
{# Custom content widget #}
|
||||||
{% set wConfig = widget.config or {} %}
|
{% set wConfig = widget.config or {} %}
|
||||||
|
|||||||
@@ -26,6 +26,8 @@
|
|||||||
{% include "components/widgets/categories.njk" %}
|
{% include "components/widgets/categories.njk" %}
|
||||||
{% elif widget.type == "subscribe" %}
|
{% elif widget.type == "subscribe" %}
|
||||||
{% include "components/widgets/subscribe.njk" %}
|
{% include "components/widgets/subscribe.njk" %}
|
||||||
|
{% elif widget.type == "recent-comments" %}
|
||||||
|
{% include "components/widgets/recent-comments.njk" %}
|
||||||
{% elif widget.type == "search" %}
|
{% elif widget.type == "search" %}
|
||||||
<div class="sidebar-widget">
|
<div class="sidebar-widget">
|
||||||
<h3 class="text-sm font-semibold text-surface-600 dark:text-surface-400 uppercase tracking-wide mb-3">Search</h3>
|
<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" %}
|
{% include "components/widgets/feedland.njk" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{# Recent Comments #}
|
||||||
|
{% include "components/widgets/recent-comments.njk" %}
|
||||||
|
|
||||||
{# Categories/Tags #}
|
{# Categories/Tags #}
|
||||||
{% include "components/widgets/categories.njk" %}
|
{% include "components/widgets/categories.njk" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user