-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c35edae
commit 1a90efe
Showing
2 changed files
with
23 additions
and
3 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 |
---|---|---|
|
@@ -6,14 +6,33 @@ xml.rss version: '2.0' do | |
xml.title 'Autoflagged Posts' | ||
xml.description 'Posts which have been autoflagged by Charcoal HQ' | ||
xml.link root_url | ||
# category | ||
xml.copyright 'Copyright 2018 CharcoalHQ' | ||
This comment has been minimized.
Sorry, something went wrong. |
||
# docs | ||
xml.language 'en-us' | ||
xml.lastBuildDate DateTime.now.strftime('%a, %-d %b %Y %T %z') | ||
xml.managingEditor 'admin@charcoalhq.org' | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong. |
||
xml.pubDate DateTime.now.strftime('%a, %-d %b %Y %T %z') | ||
xml.webMaster 'webmaster@charcoalhq.org' | ||
xml.generator 'Ruby on Rails XML generator' | ||
|
||
xml.image do | ||
xml.url 'https://charcoal-se.org/assets/images/charcoal.png' | ||
xml.title 'Autoflagged Posts' | ||
xml.link root_url | ||
This comment has been minimized.
Sorry, something went wrong.
ArtOfCode-
Member
|
||
xml.description 'Posts which have been autoflagged by Charcoal HQ' | ||
xml.width 516 | ||
xml.height 516 | ||
end | ||
|
||
@posts.each do |post| | ||
xml.item do | ||
xml.title post.title | ||
xml.description post.body | ||
xml.pubDate post.created_at.iso8601 | ||
xml.link url_for(controller: 'posts', action: 'show', id: post.id) | ||
xml.link url_for(controller: 'posts', action: 'show', id: post.id) | ||
xml.link url_for(controller: 'posts', action: 'show', id: post.id, only_path: false) | ||
# category | ||
# comments | ||
xml.pubDate post.created_at.strftime('%a, %-d %b %Y %T %z') | ||
end | ||
end | ||
end | ||
|
Knock the HQ off the end and you have it: see https://charcoal-se.org/files/branding-guide-latest.pdf, "Who We Are"