ottobonn / hexo-image-sizes

Generate multiple images sizes (thumbnail, body, etc.) for each source image in Hexo
MIT License
16 stars 9 forks source link

Use asset pipeline and generate images lazily #3

Closed ottobonn closed 6 years ago

ottobonn commented 6 years ago

This PR removes the filesystem code from hexo-image-sizes and instead uses the router builtin to write resized images to the output. It also adds lazy image generation, so that the plugin only generates images the posts actually use.