From d1b98be1823cfbb7da12ffe28725c0b5c018acd8 Mon Sep 17 00:00:00 2001 From: Christopher Rogers Date: Wed, 9 Apr 2014 18:12:05 -0700 Subject: [PATCH] Cleans up layout Signed-off-by: Christopher Rogers --- source/layouts/layout.erb | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/source/layouts/layout.erb b/source/layouts/layout.erb index 23aa1f3..62bd593 100644 --- a/source/layouts/layout.erb +++ b/source/layouts/layout.erb @@ -18,15 +18,11 @@ under the License. - - - - <%= current_page.data.title || "API Documentation" %> - <%= stylesheet_link_tag "screen", media: 'screen' %> - <%= stylesheet_link_tag "print", media: 'print' %> + <%= stylesheet_link_tag :screen, media: :screen %> + <%= stylesheet_link_tag :print, media: :print %> <%= javascript_include_tag "all" %> @@ -42,6 +38,7 @@ under the License.
<%= image_tag "logo.png" %> +
<% if current_page.data.toc_footers %> @@ -64,7 +61,7 @@ under the License.
<% language_tabs.each do |lang| %> <% if lang.is_a? Hash %> - <%= lang.values[0] %> + <%= lang.values.first %> <% else %> <%= lang %> <% end %>