ITADN

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

#635ClosedSp-cy 创建于 2024-05-16
S
Sp-cycommented
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](https://github.com/Lednerb/bilberry-hugo-theme/assets/68587155/3040ef3e-0ee5-4126-8654-8d8be541aac1) ## Single Page view ![same image in the single page view if the same article](https://github.com/Lednerb/bilberry-hugo-theme/assets/68587155/ba39cec2-5cfc-439e-960b-5831c476d31f) This is how the rendered html looks in the browser while in the homepage list view: ```html <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](https://www.sp-cy.com/article/simple-zuchinni-chicken-soup/).
关闭于 2024-06-18 1 条评论