bennetthardwick / simple-dev-blog-zola-starter

A simple dev-blog theme for Zola.
MIT License
49 stars 23 forks source link

Add page.extra.static_thumbnail in base.html #8

Closed Chemaclass closed 3 years ago

Chemaclass commented 3 years ago

The current thumbnail is based on the relative path to the current page. But, what if you have your images in the static folder? Currently, it's not possible to add any thumbnail in this context.

For this reason, I added another extra property: static_thumbnail where it will look from the static folder directly, independently from the page path.

bennetthardwick commented 3 years ago

Awesome thanks!