Class: Middleman::CoreExtensions::Internationalization::LocalizedPageDescriptor

Inherits:
Struct
  • Object
show all
Defined in:
middleman-core/lib/middleman-core/core_extensions/i18n.rb

Instance Method Summary collapse

Instance Method Details

#execute_descriptor(app, resources) ⇒ Object



273
274
275
276
277
# File 'middleman-core/lib/middleman-core/core_extensions/i18n.rb', line 273

def execute_descriptor(app, resources)
  r = ::Middleman::Sitemap::ProxyResource.new(app.sitemap, path, source_path)
  r. options: { locale: locale }
  resources + [r]
end