From: Aidan Cornelius-Bell Date: Sat, 18 Jan 2025 03:19:24 +0000 (+1030) Subject: Sane defaults for podcast feed X-Git-Url: https://gitweb.mndrdr.org/?a=commitdiff_plain;h=2b88c0533e9308c2c9cb6c9f590dc0afa66a6d83;p=arelpe.git Sane defaults for podcast feed --- 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 %>