:ruby
  basedir = "#{root}/#{source}#{current_page.url}"

  dirs = Dir.glob("#{basedir}**/*html*")
  #dirs = Dir.glob("#{basedir}*/*html*")

  pages = sitemap.resources.select do |p|
    dirs.include?(p.source_file)
  end
    
~ wrap_layout :layout do
  = yield

  - fallback_title = current_page.url.split('/').last.parameterize.titleize

  %h1= "#{pages.count} pages under #{current_page.data.title || fallback_title}"
  
  %ul
    - pages.sort_by { |p| p.data[:title].downcase }.each do |p|
      - next if p.url == current_page.url
      %li= link_to p.data.title, p.url

:ruby
  basedir = "#{root}/#{source}#{current_page.url}"

  dirs = Dir.glob("#{basedir}**/*html*")
  #dirs = Dir.glob("#{basedir}*/*html*")

  pages = sitemap.resources.select do |p|
    dirs.include?(p.source_file)
  end
    
~ wrap_layout :layout do
  = yield

  - fallback_title = current_page.url.split('/').last.parameterize.titleize

  %h1= "#{pages.count} pages under #{current_page.data.title || fallback_title}"
  
  %ul
    - pages.sort_by { |p| ( p.data[:title] || p.url.split('/').last.parameterize.titleize).downcase }.each do |p|
      - next if p.url == current_page.url
      %li= link_to p.data.title, p.url

Fix the build after the ovirt 4.0 merge
Fix the build after the ovirt 4.0 merge

The build was working on some middleman and not others, and
failed in Travis. This was tested on RHEL 7, and is likely
the right fix.
