Skip to content

Commit a378348

Browse files
committed
Add art work and its url to DojoCast's feed
1 parent 0053ba5 commit a378348

File tree

4 files changed

+2
-0
lines changed

4 files changed

+2
-0
lines changed

app/controllers/podcasts_controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ def feed
1919
@episodes = Podcast.all.sort_by{|episode| episode.published_at}
2020
@base_url = request.base_url
2121
@author = "一般社団法人 CoderDojo Japan"
22+
@art_work_url = "https://coderdojo.jp/podcasts/cover.jpg"
2223
@current_year = Time.current.year
2324
respond_to do |format|
2425
format.rss { render :layout => false }

app/views/podcasts/feed.rss.builder

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ xml.rss :version => "2.0", "xmlns:itunes" => "http://www.itunes.com/dtds/Podcast
44
xml.title full_title ""
55
xml.description full_description ""
66
xml.link root_url
7+
xml.image @art_work_url
78
xml.author @author
89
xml.copyright "Copyright © 2012-#{@current_year} #{@author}"
910
xml.language "ja"

public/podcasts/apple-rss-cover.jpg

142 KB
Loading

public/podcasts/apple-rss-cover.pxm

8.04 MB
Binary file not shown.

0 commit comments

Comments
 (0)