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



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

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