added some flags for the feed, so that it works more correctly
This commit is contained in:
parent
d91aa60bfd
commit
e824647eb1
|
@ -2,15 +2,17 @@
|
||||||
%feed{:xmlns => 'http://www.w3.org/2005/Atom'}
|
%feed{:xmlns => 'http://www.w3.org/2005/Atom'}
|
||||||
%title="zero-knowledge"
|
%title="zero-knowledge"
|
||||||
%subtitle="scripting, programming and administrating"
|
%subtitle="scripting, programming and administrating"
|
||||||
%link{:href => '/'}
|
%link{:href => 'http://zero-knowledge.org/'}
|
||||||
%link{:type => 'application/atom+xml', :rel => "self", :href => '/atom.xml'}
|
%link{:type => 'application/atom+xml', :rel => "self", :href => 'http://zero-knowledge.org/atom.xml'}
|
||||||
|
%updated=Post.get_all_released.last.written.xmlschema
|
||||||
|
%id='http://zero-knowledge.org/'
|
||||||
-@posts.each do |post|
|
-@posts.each do |post|
|
||||||
%entry
|
%entry
|
||||||
%id="/post/#{post.id}"
|
%id="http://zero-knowledge.org/post/#{post.id}"
|
||||||
%link{:type => 'text/html', :rel => "alternate", :href => "/post/#{post.id}"}
|
%link{:type => 'text/html', :rel => "alternate", :href => "/post/#{post.id}"}
|
||||||
%title=post.title
|
%title=post.title
|
||||||
%updated=post.written
|
%updated=post.written.xmlschema
|
||||||
%author
|
%author
|
||||||
%name=post.account.username
|
%name=post.account.username
|
||||||
%summary{:type => 'html'}=markup(post.content, post.markup).match(/.*?<\/p>/m)[0]
|
%summary{:type => 'html'}=markup(post.content, post.markup).match(/.*?<\/p>/m)[0].gsub(/</, '<').gsub(/>/, '>')
|
||||||
%content{:type => 'html'}=markup(post.content, post.markup)
|
%content{:type => 'html'}=markup(post.content, post.markup).gsub(/</, '<').gsub(/>/, '>')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user