Lednerb / bilberry-hugo-theme

Premium theme for the hugo site builder. DEMO:
https://lednerb.github.io/bilberry-hugo-theme/
MIT License
355 stars 151 forks source link

If noSummary is set to true in the Front Matter, Images won't display in the list view. #635

Closed Sp-cy closed 4 months ago

Sp-cy commented 5 months ago

Images are not appearing in the list view when noSummary is set to true. This seems to be a problem with the dimbox configuration. The image path seems to be incorrect. This can be easily reproduced using the hugo server and setting the noSummary: true in the front matter of any article with an image in the body.

Homepage list view

image in the list view with noSummary set to true in the front matter

Single Page view

same image in the single page view if the same article

This is how the rendered html looks in the browser while in the homepage list view:

<a href="featuredImage.jpeg" data-dimbox="" data-dimbox-caption="The final soup ended up being a cloudy broth with soft chunks of zucchinis, potatoes, onions and a spicy punch">
    <img src="featuredImage.jpeg" alt="The final soup ended up being a cloudy broth with soft chunks of zucchinis, potatoes, onions and a spicy punch">
</a>

This might have to be a relative url instead of an absolute path? I might be speaking non-sense since apparently I have not learned a thing in all this time using this wonderful theme. 😅

This is the online version of the article I'm referencing for this bug report in case that it helps: A Simple Zucchini Chicken Soup Recipe.

Sp-cy commented 4 months ago

Submitted a pull request with a fix in #636.