summaryrefslogtreecommitdiff
path: root/amber
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2014-06-26 11:11:53 -0700
committerelijah <elijah@riseup.net>2014-06-26 11:11:53 -0700
commit1408a52c3d249d28011bd262061f9cc05c0b686b (patch)
tree85fc6f6724470ab52d0c26ae79cff8ab923d8593 /amber
parent12b0ed655e91b546ce6f7801fae71ae0004366f8 (diff)
change format of html title
Diffstat (limited to 'amber')
-rw-r--r--amber/layouts/default.html.haml2
-rw-r--r--amber/locales/en.yml3
2 files changed, 3 insertions, 2 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")/
diff --git a/amber/locales/en.yml b/amber/locales/en.yml
index 657f60e..3aa2cc7 100644
--- a/amber/locales/en.yml
+++ b/amber/locales/en.yml
@@ -1,3 +1,4 @@
en:
Downloads: Downloads
- Download: Download \ No newline at end of file
+ Download: Download
+ site_title: Bitmask Downloads