1
0
mirror of https://github.com/meineerde/holgerjust.de.git synced 2026-02-21 19:12:05 +00:00

Render the full content of 10 articles in the feed

This commit is contained in:
Holger Just 2015-12-05 23:54:22 +01:00
parent 1a7d0f5ab9
commit de45c8da45

View File

@ -1,4 +1,4 @@
@articles ||= blog.articles[0..5]
@articles ||= blog.articles
title = settings.casper[:blog][:name]
subtitle = settings.casper[:blog][:description]
@ -10,10 +10,10 @@ xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do
xml.id URI.join(site_url, blog.options.prefix.to_s)
xml.link "href" => URI.join(site_url, blog.options.prefix.to_s)
xml.link "href" => URI.join(site_url, current_page.path), "rel" => "self"
xml.updated blog.articles.first.date.to_time.iso8601
xml.updated @articles.first.date.to_time.iso8601 unless @articles.empty?
xml.author { xml.name settings.casper[:author][:name] }
@articles.each do |article|
@articles[0..9].each do |article|
xml.entry do
xml.title article.title
xml.link "rel" => "alternate", "href" => URI.join(site_url, article.url)
@ -22,6 +22,7 @@ xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do
xml.updated File.mtime(article.source_file).iso8601
xml.author { xml.name settings.casper[:author][:name] }
xml.summary summary(article), "type" => "html"
xml.content article.body, "type" => "html"
end
end
end