Created
April 14, 2011 21:13
-
-
Save airios/920566 to your computer and use it in GitHub Desktop.
Breadcrumb Label Override Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Nesta | |
class App | |
helpers do | |
# Add new helpers here. | |
def breadcrumb_label(page) | |
(page.abspath == '/') ? 'Inicio' : page.heading | |
end | |
end | |
# Add new routes here. | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment