Add custom site titles

This commit is contained in:
pfischbeck committed 2017-11-23 17:09:16 +01:00
1 parent 0323456d2c
commit 084a640021
10 files changed
+34 -2

No files matched your search

+10
View File
@@ -17,4 +17,14 @@ module ApplicationHelper
nil
end
end
# Returns the full title on a per-page basis.
def full_title(page_title = '')
base_title = t('site_title')
if page_title.empty?
base_title
else
page_title + ' - ' + base_title
end
end
end