benjamincharity
1/19/2012 - 4:02 PM

Add this inside config.rb

Add this inside config.rb

def page_classes
  path = request.path_info.dup
  path << settings.index_file if path.match(%r{/$})
  path = path.gsub(%r{^/}, '')

  classes = []
  parts = path.split('.')[0].split('/')

  parts.join(' ')
end