Skip to content

Commit 771557a

Browse files
committed
toplevel/rss: incldued exapnded bodies
1 parent 5e0c1eb commit 771557a

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

lib/clayoven/toplevel.rb

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,16 @@ def self.generate_rss(content_pages, lastmod)
360360
item.link = p.permalink
361361
item.title = p.title
362362
item.updated = p.crdate
363-
item.description = p.paragraphs[0]
363+
item.description =
364+
p.paragraphs.reject { |p|
365+
%i[
366+
codeblock
367+
mathjax
368+
images
369+
exercise
370+
horizrule
371+
].include? p.type
372+
}.join "\n"
364373
end
365374
end
366375
end

0 commit comments

Comments
 (0)