feat(route/nautil): improve reading experience (#21065)

This commit is contained in:
Enoch Ma
2026-02-05 16:42:26 +08:00
committed by GitHub
parent 5634303363
commit 6bd478f489
+1
View File
@@ -57,6 +57,7 @@ async function handler(ctx) {
const out = list.map((item) => {
const head = item.yoast_head_json;
const $ = load(item.content.rendered, null, false);
$('.primis-ad, .article-ad, .editorskit-no-mobile').remove();
// lazyload images
$('img').each((_, e) => {
e = $(e);