lib/middlemac/private.rb
#--------------------------------------------------------
# Provides the navigable sitemap for the current target.
# Exclude everything that isn't HTML and doesn't have
# doesn't have a title (extra index and redirect files).
#
# @param [Sitemap::Resource] resource The page for which
#   the sitemap is being requested.
# @return [Array<Sitemap::Resource>]
# @!visibility private
#--------------------------------------------------------
Provides the navigable sitemap for the current target.
Exclude everything that isn't HTML and doesn't have
doesn't have a title (extra index and redirect files).
Provides the navigable sitemap for the current target . Exclude everything that isn ' t HTML and doesn ' t have doesn ' t have a title ( extra index and redirect files ) .
def hb_sitemap_impl(resource)
    app.sitemap.resources
      .select { |r| r.content_type && r.content_type.start_with?('text/html', 'application/xhtml')}
      .select { |r| r.data && r.data.title }
      .select { |r| r.hb_NavId }
      .select { |r| r.hb_locale == resource.hb_locale}
  end
def hb_sitemap_impl ( resource ) app . sitemap . resources . select { | r | r . content_type && r . content_type . start_with? ( 'text/html' , 'application/xhtml' ) } . select { | r | r . data && r . data . title } . select { | r | r . hb_NavId } . select { | r | r . hb_locale == resource . hb_locale } end
Provides the navigable sitemap for the current target.
Provides the navigable sitemap for the current target .
None
Array<Sitemap::Resource>
resource
<not_specific>
<not_specific>
resource The page for which the sitemap is being requested.
resource The page for which the sitemap is being requested .
!visibility
None