feat: enhance RSS feed with additional weather data
- Add country name, city name, and state name to the RSS feed - Include weather description and AI-generated description - Add weather date to provide more context for each item These changes improve the RSS feed by providing more detailed information about the weather art, enhancing the user experience and making the feed more informative for subscribers.
This commit is contained in:
parent
acbde3b034
commit
c82af65c26
@ -12,7 +12,12 @@ xml.rss version: "2.0",
|
||||
@weather_arts.each do |art|
|
||||
xml.item do
|
||||
xml.title "#{art.city.full_name} Weather Art"
|
||||
xml.description art.description
|
||||
xml.countryName art.city&.country&.name
|
||||
xml.cityName art.city&.name
|
||||
xml.stateName art.city&.state&.name
|
||||
xml.weatherDescription art.description
|
||||
xml.aiDescription art.prompt
|
||||
xml.weatherData art.weather_date
|
||||
xml.pubDate art.created_at.to_fs(:rfc822)
|
||||
xml.link city_weather_art_url(art.city, art)
|
||||
xml.guid city_weather_art_url(art.city, art)
|
||||
|
Loading…
Reference in New Issue
Block a user