diff options
Diffstat (limited to 'amber/layouts')
-rw-r--r-- | amber/layouts/_masthead.html.haml | 4 | ||||
-rw-r--r-- | amber/layouts/_masthead_large.html.haml | 13 | ||||
-rw-r--r-- | amber/layouts/default.html.haml | 2 | ||||
-rw-r--r-- | amber/layouts/home.html.haml | 20 |
4 files changed, 36 insertions, 3 deletions
diff --git a/amber/layouts/_masthead.html.haml b/amber/layouts/_masthead.html.haml index 71892f5..aad0bbd 100644 --- a/amber/layouts/_masthead.html.haml +++ b/amber/layouts/_masthead.html.haml @@ -3,9 +3,9 @@ .col-sm-12 .masthead-inner .text.top - Bitmask + =t :banner_top .text.bottom - Help + =t :banner_bottom %ul.list-unstyled#top-menu - top_navigation_items(include_home:true) do |item| %li{:class => item[:class]} diff --git a/amber/layouts/_masthead_large.html.haml b/amber/layouts/_masthead_large.html.haml new file mode 100644 index 0000000..e9fd9ec --- /dev/null +++ b/amber/layouts/_masthead_large.html.haml @@ -0,0 +1,13 @@ +.container + .row + .col-sm-12 + .masthead-inner + .text.top + =t :banner_top + .text.bottom + %span + = t(:banner_motto).gsub('<br>', ' <br> ') + %ul.list-unstyled#top-menu + - top_navigation_items(include_home:true) do |item| + %li{:class => item[:class]} + %a{:href => item[:href], :class => item[:class]}= item[:label]
\ No newline at end of file diff --git a/amber/layouts/default.html.haml b/amber/layouts/default.html.haml index 0ee9b0f..6521333 100644 --- a/amber/layouts/default.html.haml +++ b/amber/layouts/default.html.haml @@ -2,7 +2,7 @@ %html{:lang => @locals[:locale].to_s} %head %title - = @page.nav_title + ' - ' + @site.title + = @page.nav_title + ' - ' + t(:site_title) %meta(name="viewport" content="width=device-width, initial-scale=1.0") %meta(charset="UTF-8") %link(rel="stylesheet" href="/assets/bootstrap.min.css") diff --git a/amber/layouts/home.html.haml b/amber/layouts/home.html.haml new file mode 100644 index 0000000..bd84141 --- /dev/null +++ b/amber/layouts/home.html.haml @@ -0,0 +1,20 @@ +!!! +%html{:lang => @locals[:locale].to_s} + %head + %title + = t(:site_title) + %meta(name="viewport" content="width=device-width, initial-scale=1.0") + %meta(charset="UTF-8") + %link(rel="stylesheet" href="/assets/bootstrap.min.css") + %link(rel="stylesheet" href="/assets/font-awesome/css/font-awesome.min.css") + %link(rel="stylesheet" href="/assets/style.css") + %link(rel="icon" href="/assets/images/favicon.png" type="image/x-icon") + = html_head_base + %body.home + #wrap + #masthead.large + = render 'layouts/masthead_large' + #main + = yield :content + #footer + = render 'layouts/footer' |