Sha256: f52756af415740c9964333111ee0c64d7966200dbf2c9ad564de22e4617ebe53
Contents?: true
Size: 511 Bytes
Versions: 10
Compression:
Stored size: 511 Bytes
Contents
# encoding: utf-8 module Nanoc3::Helpers # Nanoc3::Helpers::Breadcrumbs provides support for breadcrumbs, which allow # the user to go up in the page hierarchy. module Breadcrumbs # Returns the breadcrumbs trail as an array. Higher items (items that are # closer to the root) come before lower items. def breadcrumbs_trail trail = [] item = @item begin trail.unshift(item) item = item.parent end until item.nil? trail end end end
Version data entries
10 entries across 10 versions & 1 rubygems