Skip to content

Commit

Permalink
feat(search): formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
teenwolfblitzer committed Feb 24, 2023
1 parent 856e5ef commit 7ec774a
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions docs/app/views/pages/search.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,17 @@
<% end %>
<% end %>
<% if @search.present? %>
<%= @search %>
<%= sage_component SageCard, { spacer: { top: :xl }} do %>
<% sorted_sage_components.each do |component| %>
<% if component[:title].include? @search or component[:description].include? @search %>
<%= sage_component SageChoice, {
attributes: {
href: pages_component_path(component[:title])
},
subtext: component[:description],
text: component[:title].titleize,
type: "arrow",
}
%>
attributes: {
href: pages_component_path(component[:title])
},
subtext: component[:description],
text: component[:title].titleize,
type: "arrow",
} %>
<% end %>
<% end %>
<% end %>
Expand Down

0 comments on commit 7ec774a

Please sign in to comment.