Method: Webgen::SourceHandler::Sitemap#create_node

Defined in:
lib/webgen/sourcehandler/sitemap.rb

#create_node(parent, path) ⇒ Object

Create an XML sitemap from parent and path.



18
19
20
21
22
23
# File 'lib/webgen/sourcehandler/sitemap.rb', line 18

def create_node(parent, path)
  page_from_path(path)
  path.ext = 'xml'
  raise "Needed information site_url missing for sitemap <#{path}>" if path.meta_info['site_url'].nil?
  super(parent, path)
end