mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-29 19:26:30 -04:00
* HAML * rewrite * Fix specs - but likely still wrong * Return temple * Trailing line * Fix specs * This was rearranged, apparently. * Fix tests * Retain escaping * Fix specs * Rubocop * Attempt to fix rendering * Fix output * Move away from filter * Move away from filter * Fix spec * Fix specs * Fix structure to avoid nested paragraph tags
15 lines
498 B
Plaintext
15 lines
498 B
Plaintext
<?xml version="1.0" encoding="UTF-8"?>
|
|
%rss{ version: 2.0 }
|
|
%channel
|
|
%title #{@member.login_name}'s recent posts (#{ENV['GROWSTUFF_SITE_NAME']})
|
|
%link= member_url(@member)
|
|
- @member.posts.each do |post|
|
|
%item
|
|
%title #{post.subject} by #{post.author.login_name}
|
|
%pubdate= post.created_at.to_fs(:rfc822)
|
|
%link= post_url(post)
|
|
%guid= post_url(post)
|
|
%description
|
|
:escaped_markdown
|
|
#{ strip_tags markdownify(post.body) }
|