fix(route/natgeo): filter out irrelevant items (#20076)

This commit is contained in:
Tsung-Han Yu
2025-09-17 05:20:05 +08:00
committed by GitHub
parent ae1f40e0ac
commit f0c3a2d452
+1
View File
@@ -66,6 +66,7 @@ async function handler(ctx) {
const urlList = $('.article-link-content h4')
.toArray()
.filter((i) => $(i).closest('.article-link-right').length === 0) // 移除右側熱門精選
.map((i) => ({
link: $(i).find('a[href]').first().attr('href'),
}))