mirror of
https://github.com/r-freeman/portfolio.git
synced 2024-11-22 20:55:40 +00:00
Remove image from rss feed
This commit is contained in:
parent
7d9820af01
commit
4ad8f6dc4e
@ -33,14 +33,12 @@ export async function GET(req: NextRequest) {
|
|||||||
let _article = $('article').first()
|
let _article = $('article').first()
|
||||||
let title = _article.find('h1').first().text()
|
let title = _article.find('h1').first().text()
|
||||||
let date = _article.find('time').first().attr('datetime') ?? new Date()
|
let date = _article.find('time').first().attr('datetime') ?? new Date()
|
||||||
let image = _article.find('image').first().html() ?? ""
|
|
||||||
let content = _article.find('.prose').first().html() ?? ""
|
let content = _article.find('.prose').first().html() ?? ""
|
||||||
|
|
||||||
feed.addItem({
|
feed.addItem({
|
||||||
title,
|
title,
|
||||||
id: url,
|
id: url,
|
||||||
link: url,
|
link: url,
|
||||||
image,
|
|
||||||
content,
|
content,
|
||||||
author: [author],
|
author: [author],
|
||||||
contributor: [author],
|
contributor: [author],
|
||||||
|
Loading…
Reference in New Issue
Block a user