Skip to content

Commit 9a3e95e

Browse files
committed
Tweak some tags to be valid in W3C online validator
1 parent 77ed569 commit 9a3e95e

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

app/views/podcasts/feed.rss.builder

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,17 @@ xml.rss :version => "2.0",
1313

1414
xml.itunes :author, @author
1515
xml.itunes :image, :href => @art_work_url
16-
xml.itunes :type, "episodic"
1716
xml.itunes :explicit, "clean"
1817
xml.itunes :owner do
1918
xml.itunes :name, "Yohei Yasukawa"
2019
xml.itunes :email, "yohei@coderdojo.jp"
2120
end
22-
xml.itunes :category, :text => "Education" do
23-
xml.itunes :category, :text => "Educational Technology"
24-
end
25-
xml.itunes :category, :text => "Government & Organizations" do
26-
xml.itunes :category, :text => "Non-Profit"
27-
end
21+
xml.itunes :category, :text => "Education"
2822

2923
@episodes.each do |episode|
3024
description = ActionView::Base.full_sanitizer.sanitize(Kramdown::Document.new(episode.description, input: 'GFM').to_html).strip
3125
xml.item do
3226
xml.title episode.title
33-
xml.author @author
34-
xml.content :encoded, description
3527
xml.description description
3628
xml.link "#{@base_url}#{episode.url}"
3729
xml.guid({:isPermaLink => "false"}, "#{@base_url}#{episode.url}")

0 commit comments

Comments
 (0)