-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minor improvements to feed view & template
- Loading branch information
1 parent
dd94748
commit 2b8268e
Showing
3 changed files
with
11 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,9 +9,9 @@ | |
<channel> | ||
<title><%= @podcast |> podcast_name_with_metadata() |> escaped() %></title> | ||
<copyright>All rights reserved</copyright> | ||
<link><%= podcast_url(@conn, @podcast) %></link> | ||
<link><%= podcast_url(@podcast) %></link> | ||
<atom:link href="<%= PodcastView.feed_url(@podcast) %>" rel="self" type="application/rss+xml" /> | ||
<atom:link href="<%= podcast_url(@conn, @podcast) %>" rel="alternate" type="text/html" /> | ||
<atom:link href="<%= podcast_url(@podcast) %>" rel="alternate" type="text/html" /> | ||
<language>en-us</language> | ||
<description><%= @podcast |> podcast_full_description() |> escaped() %></description> | ||
<itunes:author>Changelog Media</itunes:author> | ||
|
@@ -20,6 +20,7 @@ | |
<itunes:image href="<%= PodcastView.cover_url(@podcast) %>"/> | ||
<itunes:owner> | ||
<itunes:name>Changelog Media</itunes:name> | ||
<itunes:email>[email protected]</itunes:email> | ||
</itunes:owner> | ||
<itunes:keywords><%= @podcast.keywords %></itunes:keywords> | ||
<itunes:category text="Technology"> | ||
|
@@ -47,7 +48,7 @@ | |
<%= for episode <- @episodes do %> | ||
<item> | ||
<title><%= episode_title(@podcast, episode) |> escaped() %></title> | ||
<link><%= Routes.episode_url(@conn, :show, episode.podcast.slug, episode.slug) %></link> | ||
<link><%= url(~p"/#{episode.podcast.slug}/#{episode.slug}") %></link> | ||
<guid isPermaLink="false"><%= EpisodeView.guid(episode) %></guid> | ||
<pubDate><%= TimeView.rss(episode.published_at) %></pubDate> | ||
<enclosure url="<%= EpisodeView.audio_url(episode) %>" length="<%= episode.audio_bytes %>" type="audio/mpeg" /> | ||
|
@@ -66,10 +67,10 @@ | |
<%= render_many(episode.hosts, __MODULE__, "_person.xml", as: :person, role: "host") %> | ||
<%= render_many(episode.guests, __MODULE__, "_person.xml", as: :person, role: "guest") %> | ||
<%= if Episode.has_transcript(episode) do %> | ||
<podcast:transcript url="<%= Routes.episode_url(@conn, :transcript, episode.podcast.slug, episode.slug) %>" type="text/html" /> | ||
<podcast:transcript url="<%= url(~p"/#{episode.podcast.slug}/#{episode.slug}/transcript") %>" type="text/html" /> | ||
<% end %> | ||
<%= if Enum.any?(episode.audio_chapters) do %> | ||
<podcast:chapters url="<%= Routes.episode_url(@conn, :chapters, episode.podcast.slug, episode.slug) %>" type="application/json+chapters" /> | ||
<podcast:chapters url="<%= url(~p"/#{episode.podcast.slug}/#{episode.slug}/chapters") %>" type="application/json+chapters" /> | ||
<% end %> | ||
<%= if episode.socialize_url do %> | ||
<podcast:socialInteract uri="<%= episode.socialize_url %>" protocol="activitypub" /> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters