diff --git a/src/_layouts/indepth_guide.erb b/src/_layouts/indepth_guide.erb index 20d30288..ffc0e3ac 100644 --- a/src/_layouts/indepth_guide.erb +++ b/src/_layouts/indepth_guide.erb @@ -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 %>

<%= resource.data.sidebar_title %> @@ -20,4 +21,5 @@ layout: default

<%= data.title %>

<%= render Guides::InDepth::PostInfo.new(authors: data.authors, last_update: data.date) %> <%= yield %> + <%= render Shared::PageNavigation.new(entries: @entries, current: resource) %>