Skip to content

Commit

Permalink
Moved hero outside main
Browse files Browse the repository at this point in the history
  • Loading branch information
SociableSteve committed Jul 20, 2023
1 parent 2d2e89a commit d4dbf5e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
<%= render("/_nav/", :section_navigation => has_subnav?(@item) && subnav_items(@item).length > 0) %>

<div style="height: 200px" data-note="This is a temporary container so the header doesn't overlap the content">.</div>
<% if @item[:hero] %>
<section class='hero'><%= render(@item[:hero]) %></section>
<%end%>

<main>
<div class='container'>
<% if @item[:hero] %>
<section class='hero'><%= render(@item[:hero]) %></section>
<%end%>

<% if @item.attributes.has_key?(:package_index_page) %>
<%= render("/_pkg_idx/", :info => @item.attributes) %>
<% end %>
Expand All @@ -21,7 +21,7 @@
<% end %>

<% if has_subnav?(@item) %>
<section class='left-col'><%= render("/components/subnav/", :pages => subnav_items(@item)) %></section>
<section class='left-col'><%= render("/components/subnav/", :pages => subnav_items(@item)) %></section>
<% end %>

<section class='content'>
Expand Down

0 comments on commit d4dbf5e

Please sign in to comment.