diff --git a/docs/en/joinus/README.md b/docs/en/joinus/README.md index 14fceb379..da1fb8d2d 100644 --- a/docs/en/joinus/README.md +++ b/docs/en/joinus/README.md @@ -73,7 +73,7 @@ Firstly, add a .js file for the new route in [/lib/router.js](https://github.com // the article title title: item.title, // the article content - description: `${item.desc}
`, + description: `${item.desc}
`, // the article publish time pubDate: new Date(item.time * 1000).toUTCString(), // the article link diff --git a/docs/joinus/README.md b/docs/joinus/README.md index 09f5d11a1..bcb9c875e 100644 --- a/docs/joinus/README.md +++ b/docs/joinus/README.md @@ -82,7 +82,7 @@ sidebar: auto // 文章标题 title: item.title, // 文章正文 - description: `${item.desc}
`, + description: `${item.desc}
`, // 文章发布时间 pubDate: new Date(item.time * 1000).toUTCString(), // 文章链接 @@ -141,7 +141,7 @@ sidebar: auto description: `作者:${item .find('.usr-pic a') .last() - .text()}
描述:${item.find('.content p').text()}
`, + .text()}
描述:${item.find('.content p').text()}
`, link: item.find('.title a').attr('href'), }; }) diff --git a/lib/routes/005tv/zx.js b/lib/routes/005tv/zx.js index eb77800de..92af482e8 100644 --- a/lib/routes/005tv/zx.js +++ b/lib/routes/005tv/zx.js @@ -17,7 +17,7 @@ module.exports = async (ctx) => { .find('h3 > a') .text() .trim(), - description: `
${$(item) diff --git a/lib/routes/9to5/utils.js b/lib/routes/9to5/utils.js index a068aa573..ab4f78461 100644 --- a/lib/routes/9to5/utils.js +++ b/lib/routes/9to5/utils.js @@ -6,7 +6,7 @@ const ProcessFeed = (data) => { const cover = $('meta[property="og:image"]'); if (cover.length > 0) { - $(``).insertBefore(content[0].firstChild); + $(``).insertBefore(content[0].firstChild); } // remove useless DOMs diff --git a/lib/routes/acfun/bangumi.js b/lib/routes/acfun/bangumi.js index 019dab4ed..673969100 100644 --- a/lib/routes/acfun/bangumi.js +++ b/lib/routes/acfun/bangumi.js @@ -33,7 +33,7 @@ module.exports = async (ctx) => { return { title: `${video.episodeName}-${video.newTitle}`, - description: ``, + description: ``, link: `http://www.acfun.cn/bangumi/ab${id}_${video.groupId}_${video.id}`, pubDate: new Date(video.onlineTime).toUTCString(), }; diff --git a/lib/routes/acfun/video.js b/lib/routes/acfun/video.js index cb99e0b26..fd4a707f3 100644 --- a/lib/routes/acfun/video.js +++ b/lib/routes/acfun/video.js @@ -34,7 +34,7 @@ module.exports = async (ctx) => { return { title: itemTitle, - description: ``, + description: ``, link: host + itemUrl, pubDate: new Date(itemDate).toUTCString(), }; diff --git a/lib/routes/anigamer/anime.js b/lib/routes/anigamer/anime.js index 437b69a81..a601f7365 100644 --- a/lib/routes/anigamer/anime.js +++ b/lib/routes/anigamer/anime.js @@ -5,7 +5,7 @@ module.exports = async (ctx) => { ctx.state.data = { title: anime.title, link: `https://ani.gamer.com.tw/animeRef.php?sn=${anime.anime_sn}`, - description: ` ` + anime.content.trim(), + description: ` ` + anime.content.trim(), item: anime.volumes[0].map((item) => ({ title: `${anime.title} 第 ${item.volume} 集`, link: `https://ani.gamer.com.tw/animeVideo.php?sn=${item.video_sn}`, diff --git a/lib/routes/animen/news.js b/lib/routes/animen/news.js index 6c17188f5..d95fef328 100644 --- a/lib/routes/animen/news.js +++ b/lib/routes/animen/news.js @@ -59,7 +59,7 @@ module.exports = async (ctx) => { description = detail.content; } else { const image = detail.p_original_path; - description = `

`; + description = `

`; } return description; }); diff --git a/lib/routes/apkpure/versions.js b/lib/routes/apkpure/versions.js index ba2cdf14c..4e74c9ad0 100644 --- a/lib/routes/apkpure/versions.js +++ b/lib/routes/apkpure/versions.js @@ -13,7 +13,7 @@ module.exports = async (ctx) => { img.searchParams.delete('w'); // get full resolution icon ctx.state.data = { title: $('.ver-top-h1').text(), - description: ` ` + $('.ver-top-title>h2').text(), + description: ` ` + $('.ver-top-title>h2').text(), link: decodeURI(link), item: $('.ver li') .toArray() diff --git a/lib/routes/apple/appstore/gofans.js b/lib/routes/apple/appstore/gofans.js index 208aba672..022d41171 100644 --- a/lib/routes/apple/appstore/gofans.js +++ b/lib/routes/apple/appstore/gofans.js @@ -19,7 +19,7 @@ module.exports = async (ctx) => { item: response.data.data.map((item) => ({ title: `「${item.price === '0.00' ? '免费' : '降价'}」-「${item.kind === '1' ? 'macOS' : 'iOS'}」${item.name}`, description: ` - +
原价:¥${item.original_price} -> 现价:¥${item.price}
diff --git a/lib/routes/apple/appstore/xianmian.js b/lib/routes/apple/appstore/xianmian.js index 46ed82980..8e3d4ad9e 100644 --- a/lib/routes/apple/appstore/xianmian.js +++ b/lib/routes/apple/appstore/xianmian.js @@ -12,7 +12,7 @@ module.exports = async (ctx) => { item: data.map((item) => ({ title: `「${item.discount_info[0].discounted_price === '0.00' ? '免费' : '降价'}」${item.app.name}`, description: ` - +
原价:¥${item.discount_info[0].original_price} -> 现价:¥${item.discount_info[0].discounted_price}
diff --git a/lib/routes/aptonic/action.js b/lib/routes/aptonic/action.js index 93f94b97f..c93a3a739 100644 --- a/lib/routes/aptonic/action.js +++ b/lib/routes/aptonic/action.js @@ -18,7 +18,7 @@ module.exports = async (ctx) => { return { title: item.find('h2').text(), description: ` - +
${$(item.find('td')[1]) .children() diff --git a/lib/routes/aqicn/index.js b/lib/routes/aqicn/index.js index f28cac8dd..a2f543a0c 100644 --- a/lib/routes/aqicn/index.js +++ b/lib/routes/aqicn/index.js @@ -17,7 +17,7 @@ module.exports = async (ctx) => { item: [ { title: `${data.namena}实时空气质量(AQI)${data.utimecn}`, - description: `${data.infocn}
风力:${data.cwind[0]}
AQI:${data.aqi}
`, + description: `${data.infocn}
风力:${data.cwind[0]}
AQI:${data.aqi}
`, pubDate: new Date(data.time * 1000).toUTCString(), guid: data.time, link: `https://aqicn.org/city/${data.ids.path}`, diff --git a/lib/routes/atfd/index.js b/lib/routes/atfd/index.js index 00a7ae821..bd937c59a 100644 --- a/lib/routes/atfd/index.js +++ b/lib/routes/atfd/index.js @@ -37,7 +37,7 @@ module.exports = async (ctx) => { description: 'All the Flight Deals', item: data.map((item) => ({ title: `[${item.dateRanges[0] ? dayjs(item.dateRanges[0].start).format('YYYY MMM DD') + ' to ' + dayjs(item.dateRanges[0].end).format('YYYY MMM DD') : ''}] ${item.title}`, - description: `${item.cityPairs[0].destination.city},${item.cityPairs[0].destination.countryName}
FromToPrice
${item.cityPairs[0].origin.iata}, ${item.cityPairs[0].origin.city}, ${item.cityPairs[0].origin.countryName}${item.cityPairs[0].destination.iata}, ${item.cityPairs[0].destination.city}, ${item.cityPairs[0].destination.countryName}${item.currency} ${item.price}
`, + description: `${item.cityPairs[0].destination.city},${item.cityPairs[0].destination.countryName}
FromToPrice
${item.cityPairs[0].origin.iata}, ${item.cityPairs[0].origin.city}, ${item.cityPairs[0].origin.countryName}${item.cityPairs[0].destination.iata}, ${item.cityPairs[0].destination.city}, ${item.cityPairs[0].destination.countryName}${item.currency} ${item.price}
`, pubDate: new Date(item.createdAt), guid: item.id, link: item.url, diff --git a/lib/routes/autotrader/index.js b/lib/routes/autotrader/index.js index e0978b191..b23a0e0c8 100644 --- a/lib/routes/autotrader/index.js +++ b/lib/routes/autotrader/index.js @@ -49,7 +49,7 @@ module.exports = async (ctx) => { let images = ''; $('.fpa-image-overlay img').each((i, e) => { - images += `
`; + images += `
`; }); const description = keyFacts + images + $('meta[name="og:description"]').attr('content'); diff --git a/lib/routes/baidu/doodles.js b/lib/routes/baidu/doodles.js index 779e600dc..38be4f9a5 100644 --- a/lib/routes/baidu/doodles.js +++ b/lib/routes/baidu/doodles.js @@ -18,7 +18,7 @@ module.exports = async (ctx) => { return { title: `${item.find('.title').text()}-${item.find('.date').text()}`, - description: ``, + description: ``, link: item.find('.more a').attr('href'), }; }) diff --git a/lib/routes/bangumi/calendar/today.js b/lib/routes/bangumi/calendar/today.js index e3e0ef805..bc602f6dd 100644 --- a/lib/routes/bangumi/calendar/today.js +++ b/lib/routes/bangumi/calendar/today.js @@ -38,7 +38,7 @@ module.exports = async (ctx) => { const link = `http://bangumi.tv/subject/${bgm.bgm_id}`; const id = `${link}#${new Intl.DateTimeFormat('zh-CN').format(updated)}`; - const image = ``; + const image = ``; const html = image + '