master
 1<% provide(:description, "CakeSide is a free site to share your cake creations and ideas with other cake fanatics like yourself") -%>
 2<% provide(:search_path, cakes_path) %>
 3<% provide(:container_class, 'container') %>
 4
 5<% unless current_user? %>
 6<div class="row jumbotron">
 7  <div class="col text-center">
 8    <%= image_tag "cakeside-logo.png", alt: "CakeSide", class: "img-fluid" %>
 9    <h1>Welcome cake enthusiast!</h1>
10    <p> Do you make cakes, sell cakes, or just love eating them? Then you've come to the right place. </p>
11    <p> CakeSide is a free site to share your cake creations and ideas with other cake fanatics like yourself. </p>
12    <p> Get your cakes featured on this page. </p>
13    <%= link_to "Sign Up For Free", login_path, class: "btn btn-primary btn-large" %> or <%= link_to "Sign in", new_session_path %>
14  </div>
15</div>
16<% end %>
17
18<div class="row">
19  <div class="col">
20    <nav class="nav nav-pills nav-fill">
21      <%= link_to "All", cakes_path(sort: params[:sort]), class: "nav-item nav-link #{"active" if params["category"].blank?}" %>
22      <% @categories.each do |category| %>
23        <%= link_to category.name.pluralize, cakes_path(category: category.slug, sort: params[:sort]), class: "nav-item nav-link #{"active" if params["category"] == category.slug}" %>
24      <% end %>
25      <%= link_to "Newest", cakes_path(category: params[:category], sort: "newest"), class: "nav-item nav-link #{"active" if "newest" == params["sort"]}" %>
26      <%= link_to "Oldest", cakes_path(category: params[:category], sort: "oldest"), class: "nav-item nav-link #{"active" if "oldest" == params["sort"]}" %>
27    </nav>
28  </div>
29</div>
30
31<div class="row">
32  <div id="bakery" class="col">
33    <%= render partial: 'index' %>
34  </div>
35</div>
36<%# render "shared/paging", items: @cakes %>