@@ -66,6 +66,7 @@ pub fn render_struct(ctx: &RenderContext, item: &RenderableItem) -> AnyResult<St
6666 let impls = collect_impls ( ctx, item. id , depth) ;
6767 tera_ctx. insert ( "impls" , & impls) ;
6868 tera_ctx. insert ( "path_to_root" , & path_to_root) ;
69+ tera_ctx. insert ( "breadcrumbs" , & super :: build_breadcrumbs ( & item. path , depth) ) ;
6970
7071 // Sidebar HTML.
7172 let sidebar_html = super :: sidebar:: render_sidebar ( ctx, & item. path , & path_to_root) ?;
@@ -131,6 +132,7 @@ pub fn render_union(ctx: &RenderContext, item: &RenderableItem) -> AnyResult<Str
131132 let impls = collect_impls ( ctx, item. id , depth) ;
132133 tera_ctx. insert ( "impls" , & impls) ;
133134 tera_ctx. insert ( "path_to_root" , & path_to_root) ;
135+ tera_ctx. insert ( "breadcrumbs" , & super :: build_breadcrumbs ( & item. path , depth) ) ;
134136
135137 // Sidebar HTML.
136138 let sidebar_html = super :: sidebar:: render_sidebar ( ctx, & item. path , & path_to_root) ?;
@@ -172,6 +174,7 @@ pub fn render_function(ctx: &RenderContext, item: &RenderableItem) -> AnyResult<
172174 tera_ctx. insert ( "docs" , & docs) ;
173175
174176 tera_ctx. insert ( "path_to_root" , & path_to_root) ;
177+ tera_ctx. insert ( "breadcrumbs" , & super :: build_breadcrumbs ( & item. path , depth) ) ;
175178
176179 // Sidebar HTML.
177180 let sidebar_html = super :: sidebar:: render_sidebar ( ctx, & item. path , & path_to_root) ?;
@@ -264,6 +267,7 @@ pub fn render_enum(ctx: &RenderContext, item: &RenderableItem) -> AnyResult<Stri
264267 let impls = collect_impls ( ctx, item. id , depth) ;
265268 tera_ctx. insert ( "impls" , & impls) ;
266269 tera_ctx. insert ( "path_to_root" , & path_to_root) ;
270+ tera_ctx. insert ( "breadcrumbs" , & super :: build_breadcrumbs ( & item. path , depth) ) ;
267271
268272 // Sidebar HTML.
269273 let sidebar_html = super :: sidebar:: render_sidebar ( ctx, & item. path , & path_to_root) ?;
@@ -366,6 +370,7 @@ pub fn render_trait(ctx: &RenderContext, item: &RenderableItem) -> AnyResult<Str
366370 tera_ctx. insert ( "implementors" , & implementors) ;
367371
368372 tera_ctx. insert ( "path_to_root" , & path_to_root) ;
373+ tera_ctx. insert ( "breadcrumbs" , & super :: build_breadcrumbs ( & item. path , depth) ) ;
369374
370375 // Sidebar HTML.
371376 let sidebar_html = super :: sidebar:: render_sidebar ( ctx, & item. path , & path_to_root) ?;
@@ -407,6 +412,7 @@ pub fn render_type_alias(ctx: &RenderContext, item: &RenderableItem) -> AnyResul
407412 tera_ctx. insert ( "docs" , & docs) ;
408413
409414 tera_ctx. insert ( "path_to_root" , & path_to_root) ;
415+ tera_ctx. insert ( "breadcrumbs" , & super :: build_breadcrumbs ( & item. path , depth) ) ;
410416
411417 // Sidebar HTML.
412418 let sidebar_html = super :: sidebar:: render_sidebar ( ctx, & item. path , & path_to_root) ?;
@@ -456,6 +462,7 @@ pub fn render_constant(ctx: &RenderContext, item: &RenderableItem) -> AnyResult<
456462 tera_ctx. insert ( "docs" , & docs) ;
457463
458464 tera_ctx. insert ( "path_to_root" , & path_to_root) ;
465+ tera_ctx. insert ( "breadcrumbs" , & super :: build_breadcrumbs ( & item. path , depth) ) ;
459466
460467 // Sidebar HTML.
461468 let sidebar_html = super :: sidebar:: render_sidebar ( ctx, & item. path , & path_to_root) ?;
@@ -497,6 +504,7 @@ pub fn render_macro(ctx: &RenderContext, item: &RenderableItem) -> AnyResult<Str
497504 . unwrap_or_default ( ) ;
498505 tera_ctx. insert ( "docs" , & docs) ;
499506 tera_ctx. insert ( "path_to_root" , & path_to_root) ;
507+ tera_ctx. insert ( "breadcrumbs" , & super :: build_breadcrumbs ( & item. path , depth) ) ;
500508
501509 // Sidebar HTML.
502510 let sidebar_html = super :: sidebar:: render_sidebar ( ctx, & item. path , & path_to_root) ?;
0 commit comments