module Nanoc::Helpers::Polly

Public Instance Methods

item_about(item) click to toggle source
# File lib/nanoc/helpers/polly.rb, line 10
def item_about item
  if item[:about]
    item[:about]
  elsif item.path == '/' # special path
    'index'
  else
    # remove leading and trailing /
    item.path.sub(/\A\//,'').sub(/\/\z/, '')
  end
end