This pull request includes changes to the src/pages/rss.xml.ts and src/utils/blog.ts files. It modifies the GET function in rss.xml.ts to use the link, title, description, and pubDate properties from the post object. It also updates the load function in blog.ts to fetch posts from the WordPress API and map the response data to the Post object. Additionally, a new getFeaturedMedia function is added to fetch the source URL of the featured media.
Summary
Modified GET function in src/pages/rss.xml.ts to use link, title, description, and pubDate properties from post object
Updated load function in src/utils/blog.ts to fetch posts from WordPress API and map response data to Post object
Added getFeaturedMedia function to fetch source URL of featured media
Fixes #5.
🎉 Latest improvements to Sweep:
We just released a dashboard to track Sweep's progress on your issue in real-time, showing every stage of the process – from search to planning and coding.
Sweep uses OpenAI's latest Assistant API to plan code changes and modify code! This is 3x faster and significantly more reliable as it allows Sweep to edit code and validate the changes in tight iterations, the same way as a human would.
PR Feedback (click)
Description
This pull request includes changes to the
src/pages/rss.xml.ts
andsrc/utils/blog.ts
files. It modifies theGET
function inrss.xml.ts
to use thelink
,title
,description
, andpubDate
properties from thepost
object. It also updates theload
function inblog.ts
to fetch posts from the WordPress API and map the response data to thePost
object. Additionally, a newgetFeaturedMedia
function is added to fetch the source URL of the featured media.Summary
GET
function insrc/pages/rss.xml.ts
to uselink
,title
,description
, andpubDate
properties frompost
objectload
function insrc/utils/blog.ts
to fetch posts from WordPress API and map response data toPost
objectgetFeaturedMedia
function to fetch source URL of featured mediaFixes #5.
🎉 Latest improvements to Sweep:
💡 To get Sweep to edit this pull request, you can: