Open illegalnumbers opened 8 years ago
Ah, interesting.
Any chance you can send a PR fixing that?
I can tinker with it when I get a chance!
So if the rss file that gets copied over is the same one used in the engine this
xml.instruct! :xml, version: "1.0"
xml.rss version: "2.0" do
xml.channel do
xml.title Monologue::Config.site_name
xml.description Monologue::Config.meta_description
xml.link root_url
for post in @posts
xml.item do
xml.title post.title
xml.description raw(post.content)
xml.pubDate post.published_at.to_s(:rfc822)
xml.link Monologue::Config.site_url + post.full_url
xml.guid Monologue::Config.site_url + post.full_url
end
end
end
end
Would need to change the xml.link to root_url for everything or change it to Monologue::Config.site_url for everything. Either way would stay consistent, but if I patch it I'll probably do the site_url way.
Yup, sounds good to me, thanks @illegalnumbers!
The root blog link takes from the site url (from the request? not sure) but the actual item creation in the RSS takes from the site_url.
Example, I have a local rails server and I get the following RSS feed: