File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -308,7 +308,8 @@ def from_section(
308
308
kwargs [f"h{ i + 1 } " ] = heading
309
309
if tutorial .images :
310
310
# TODO consider an explicitly set thumbnail from tutorial metadata
311
- kwargs ["thumbnail_url" ] = tutorial .images [0 ]
311
+ # kwargs["thumbnail_url"] = tutorial.images[0] # with JupyterBook, this selects the sidebar logo
312
+ kwargs ["thumbnail_url" ] = tutorial .images [- 1 ]
312
313
313
314
return cls (** kwargs )
314
315
@@ -352,7 +353,8 @@ def from_section(
352
353
if page .image_urls :
353
354
# TODO consider getting a thumbnail explicitly set form guide
354
355
# metadata
355
- thumbnail_url : Optional [str ] = page .image_urls [0 ]
356
+ # thumbnail_url: Optional[str] = page.image_urls[0]
357
+ thumbnail_url : Optional [str ] = page .image_urls [- 1 ]
356
358
elif site_metadata .logo_url :
357
359
thumbnail_url = site_metadata .logo_url
358
360
else :
You can’t perform that action at this time.
0 commit comments