hugo-theme-bleak
hugo-theme-bleak copied to clipboard
Hardcoded low-resolution cover image URL
Summary
The low resolution cover image is not configurable and hard-coded as /images/cover.low.jpg.
Steps to reproduce
- Remove any
static/images/cover*files - Add an image
static/images/any_name_other_than_cover.jpg - Configure it to be the cover image:
cover = "/images/any_name_other_than_cover.jpg"
- Serve and browse the site
Result
Chrome console complains about a non-existing /images/cover/low.jpg file.
Suggested fix
How about making the low res cover configurable via e.g. .Site.Params.coverLow?
This is the relevant line: https://github.com/Zenithar/hugo-theme-bleak/blob/a8dcb798ae7f98ace354f42c3a23b40fa2c54542/layouts/index.html#L13
PR are welcome ^^
Sounds like a great idea. Basically making the low res version of the cover image an optional feature.