From 2b88c0533e9308c2c9cb6c9f590dc0afa66a6d83 Mon Sep 17 00:00:00 2001 From: Aidan Cornelius-Bell Date: Sat, 18 Jan 2025 13:49:24 +1030 Subject: [PATCH] Sane defaults for podcast feed --- app/views/audios/feed.rss.erb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/audios/feed.rss.erb b/app/views/audios/feed.rss.erb index 79e4700..9a72167 100644 --- a/app/views/audios/feed.rss.erb +++ b/app/views/audios/feed.rss.erb @@ -1,7 +1,7 @@ - <%= Rails.application.config.site_name %> Podcast + <%= Rails.application.config.site_name %> podcast <%= root_url %> en-us © <%= Time.current.year %> <%= Rails.application.config.site_name %> @@ -25,11 +25,11 @@ url="<%= rails_blob_url(audio.file) %>" length="<%= audio.file.byte_size %>" type="audio/mpeg"/> - <%= audio_url(audio) %> + <%= if audio.post.present? then "https://mndrdr.org/#{audio.post.published_at.year}/#{audio.post.slug}" else audio_url(audio) end %> <%= audio.rss_duration %> - ]]> + . <%= if audio.post.present? then "\nPre-written transcript:" + audio.post.rendered_content end %>]]> <% if audio.post.present? %> - <%= post_url(audio.post) %> + <%= if audio.post.present? then "https://mndrdr.org/#{audio.post.published_at.year}/#{audio.post.slug}" else audio_url(audio) end %> <% end %> <% end %> -- 2.39.5