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

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

Instance Method Summary collapse

Instance Method Details

#execute_descriptor(app, resources) ⇒ Object



328
329
330
331
332
# File 'lib/middleman-core/core_extensions/i18n.rb', line 328

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