summaryrefslogtreecommitdiff
path: root/layouts/highlights.html
diff options
context:
space:
mode:
authoreltrac <hi@eltr.ac>2026-02-20 15:57:19 +0800
committereltrac <hi@eltr.ac>2026-02-20 15:57:19 +0800
commit02a247ba9112ae944169c7665ba9be87e91c02dc (patch)
treea3d7a1b021fd4b6ce5f765c8f89002074b5cb3bc /layouts/highlights.html
parent453dc430a100729652551643e3024dd36d0dbb21 (diff)
perf: render items of long list only after scrolled into view
Diffstat (limited to 'layouts/highlights.html')
-rw-r--r--layouts/highlights.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/highlights.html b/layouts/highlights.html
index 9d7c13bf..f9f9c030 100644
--- a/layouts/highlights.html
+++ b/layouts/highlights.html
@@ -6,12 +6,12 @@
</div>
<!-- Highlights -->
{{ range shuffle site.Data.highlights }}
- <section class="post-content">
+ <section class="post-content lazy-render">
<h3><a href="{{ .url }}">《{{ .title }}》</a></h3>
<ul class="list-none">
{{ range .highlights }}
<li class="my-4 text-lg">
- <a class="font-italic hover:no-underline" href="{{ .link }}">{{ .text | markdownify }}</a>
+ <a class="hover:no-underline" href="{{ .link }}">{{ .text | markdownify }}</a>
</li>
{{ end }}
</ul>