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



328
329
330
331
332
# File 'middleman-core/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