feat(route/nautil): improve reading experience (#21065)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user