feat: wrap all widgets and comments in is-land on:visible

Add <is-land on:visible> lazy-loading wrapper to every widget template
and the comments section for consistent deferred rendering. Widgets
that already had it (social-activity, github-repos, blogroll, feedland,
webmentions) are unchanged. Also wraps inline search and custom-html
widgets in all sidebar container files.
This commit is contained in:
Ricardo
2026-02-22 00:31:01 +01:00
parent 791dccf223
commit 1bf6f9358a
17 changed files with 42 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
{# Table of Contents Widget (for articles with headings) #}
{% if toc and toc.length %}
<is-land on:visible>
<div class="widget">
<h3 class="widget-title">Contents</h3>
<nav class="toc">
@@ -14,4 +15,5 @@
</ul>
</nav>
</div>
</is-land>
{% endif %}