mirror of
https://github.com/meineerde/holgerjust.de.git
synced 2025-10-17 17:01:01 +00:00
Use blog_author helper in feed.xml
This commit is contained in:
parent
5652069819
commit
8a3a500c85
@ -11,7 +11,7 @@ xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do
|
||||
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 @articles.first.date.to_time.iso8601 unless @articles.empty?
|
||||
xml.author { xml.name settings.casper[:author][:name] }
|
||||
xml.author { xml.name blog_author.name }
|
||||
|
||||
@articles[0..9].each do |article|
|
||||
xml.entry do
|
||||
@ -20,7 +20,7 @@ xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do
|
||||
xml.id URI.join(site_url, article.url)
|
||||
xml.published article.date.to_time.iso8601
|
||||
xml.updated File.mtime(article.source_file).iso8601
|
||||
xml.author { xml.name settings.casper[:author][:name] }
|
||||
xml.author { xml.name blog_author(article.data.author).name }
|
||||
xml.summary summary(article), "type" => "html"
|
||||
xml.content article.body, "type" => "html"
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user