import{t as e}from"./ofetch-Dl6dVB_5.mjs";import{t}from"./cache-DUthuMSu.mjs";import{t as n}from"./parse-date-BdYTmLpo.mjs";import{load as r}from"cheerio";const i={path:`/blog`,name:`Blog`,categories:[`program-update`],maintainers:[`equt`],example:`/nextjs/blog`,features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},handler:async()=>{let i=r(await e(`https://nextjs.org/blog`));return{title:`Next.js Blog`,link:`https://nextjs.org/blog`,language:`en-US`,item:await Promise.all(i(`article`).toArray().slice(0,20).map(i=>{let a=`https://nextjs.org${r(i)(`a[href^="/blog"]`).attr(`href`)}`;return t.tryGet(`nextjs:blog:${a}`,async()=>{let t=r(await e(a));return{title:t(`h1`).first().text().trim(),link:a,description:t(`div.prose`).html()??``,pubDate:n(t(`p[data-version="v1"]`).first().text().replace(/st|nd|rd|th/,``))}})}))}}};export{i as route};