app/views/lookbook/pages/show.html.erb in lookbook-1.0.0.beta.0 vs app/views/lookbook/pages/show.html.erb in lookbook-1.0.0.beta.1

- old
+ new

@@ -7,10 +7,20 @@ <% end %> <%= render_component :prose, markdown: false, class: "max-w-none flex-none" do %> <%= @page_content %> <% end %> - + + <% if @page.sections.any? %> + <%= render_component :page_tabs, markdown: false do |page_tabs| %> + <% @page.sections.each do |section| %> + <% page_tabs.tab name: "page-section-#{section.name}", label: section.label do %> + <%= page_controller.render_page(section) %> + <% end %> + <% end %> + <% end %> + <% end %> + <% if @page.footer? && @pages.many? %> <footer class="flex items-center justify-between border-t border-gray-300 mt-12 pt-8 pb-10 "> <% if @previous_page %> <a href="<%= page_path @previous_page.lookup_path %>" class="flex items-center flex-none">