Created
November 7, 2011 02:11
-
-
Save wrburgess/1344044 to your computer and use it in GitHub Desktop.
return a title on a per-page basis
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
# return a title on a per-page basis | |
def title | |
base_title = "[Site Name]" | |
if @title.nil? | |
base_title | |
else | |
"#{base_title} | #{@title}" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment