lib/nanoc/helpers/blogging.rb in nanoc-4.7.8 vs lib/nanoc/helpers/blogging.rb in nanoc-4.7.9
- old
+ new
@@ -102,13 +102,12 @@
raise Nanoc::Int::Errors::GenericTrivial.new('Cannot build Atom feed: one or more articles lack created_at')
end
end
def build_for_feed(xml)
+ root_url = @config[:base_url] + '/'
xml.instruct!
- xml.feed(xmlns: 'http://www.w3.org/2005/Atom') do
- root_url = @config[:base_url] + '/'
-
+ xml.feed(xmlns: 'http://www.w3.org/2005/Atom', 'xml:base' => root_url) do
# Add primary attributes
xml.id root_url
xml.title title
# Add date