Skip to content

Commit

Permalink
show prev/next nav on openapi tutorials
Browse files Browse the repository at this point in the history
  • Loading branch information
thimy committed Sep 4, 2024
1 parent d177b4e commit 0c34df5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/_layouts/indepth_guide.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
layout: default
---

<%= render Shared::Sidebar.new(data: site.data.guides_sidebar[resource.data.sidebar_name], current: resource) do |sidebar| %>
<% @entries = site.data.guides_sidebar[resource.data.sidebar_name] %>
<%= render Shared::Sidebar.new(data: @entries, current: resource) do |sidebar| %>
<% sidebar.slot :before do %>
<h1>
<%= resource.data.sidebar_title %>
Expand All @@ -20,4 +21,5 @@ layout: default
<h1><%= data.title %></h1>
<%= render Guides::InDepth::PostInfo.new(authors: data.authors, last_update: data.date) %>
<%= yield %>
<%= render Shared::PageNavigation.new(entries: @entries, current: resource) %>
</main>

0 comments on commit 0c34df5

Please sign in to comment.