summaryrefslogtreecommitdiff
path: root/amber/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'amber/layouts')
-rw-r--r--amber/layouts/default.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/amber/layouts/default.html.haml b/amber/layouts/default.html.haml
index cdf57e8..6650f00 100644
--- a/amber/layouts/default.html.haml
+++ b/amber/layouts/default.html.haml
@@ -2,7 +2,7 @@
%html{:lang => I18n.locale}
%head
%title
- = @page.nav_title + ' - ' + @site.title
+ = [(@page.nav_title unless @page.path.empty?), I18n.t('site_title')].compact.join(' - ')
%meta(name="viewport" content="width=device-width, initial-scale=1.0")/
%link(rel="stylesheet" href="/assets/bootstrap.min.css")/
%link(rel="stylesheet" href="/assets/font-awesome/css/font-awesome.min.css")/