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



262
263
264
265
266
# File 'lib/middleman-core/core_extensions/i18n.rb', line 262

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