1
0
mirror of https://github.com/projekteuler/projekteuler.git synced 2026-01-27 10:38:50 +01:00

Add custom site titles

This commit is contained in:
2017-11-23 17:09:16 +01:00
parent 0323456d2c
commit 084a640021
10 changed files with 34 additions and 2 deletions

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