import{t as e}from"./parse-date-BdYTmLpo.mjs";import{t}from"./got-BBDj7u1e.mjs";import n from"markdown-it";const r=n(),i={path:`/`,radar:[{source:[`hackertalk.net/`],target:``}],name:`Unknown`,maintainers:[`hyoban`],handler:a,url:`hackertalk.net/`};async function a(n){return{title:`黑客说的最新帖子`,link:`https://hackertalk.net/?tab=new`,description:`黑客说 - 技术驱动优质交流`,item:(await t(`https://api.hackertalk.net/v1/posts?limit=${n.req.query(`limit`)??25}&orderBy=time`)).data.data.map(t=>({title:t.title,description:r.render(t.content),pubDate:e(t.createdAt),link:`https://hackertalk.net/posts/${t.id}`}))}}export{i as route};