Class: JekyllNavigation::NavigationItem

Inherits:
AbstractNavigationItem show all
Defined in:
lib/jekyll-navigation/navigation_item.rb

Instance Attribute Summary

Attributes inherited from AbstractNavigationItem

#page

Instance Method Summary collapse

Methods inherited from AbstractNavigationItem

#exclude?, #order, #parent, #title

Instance Method Details

#[](key) ⇒ Object



45
46
47
# File 'lib/jekyll-navigation/navigation_item.rb', line 45

def [] key
  data[key]
end

#dataObject



41
42
43
# File 'lib/jekyll-navigation/navigation_item.rb', line 41

def data
  page.data.merge("url" => page.url, "name" => page.name)
end