khusika / FeelIt

A clean, elegant but advanced blog theme for Hugo
https://feelit.khusika.dev
MIT License
164 stars 60 forks source link

[BUG] featured-image is not rendered #67

Closed antedoro closed 2 years ago

antedoro commented 2 years ago

Describe the bug

When I start hugo server -D featured-image-preview.webp on homepage and featuredimage.webp it's not rendered. (Sorry it's probably not a bug but I need some support to solve it)

Expected behavior

Frontmatter's post it's correctly configured as:

resources:
- name: "featured-image"
  src: "featured-image.webp"
- name: "featured-image-preview"
  src: "featured-image-preview.webp"

but featured image its not displayed

Build Environment

Preview Environment

khusika commented 2 years ago

May i know your both image and markdown file location?

antedoro commented 2 years ago

This is my site repository: https://github.com/antedoro/miosito

antedoro commented 2 years ago

I solved. It was enough to enter the following parameter in the config.toml:

[params.home.posts]
  imagePreview = true

Sorry for the trouble on such a trivial thing.

dugajimi

khusika commented 2 years ago

I solved. It was enough to enter the following parameter in the config.toml:

[params.home.posts]
  imagePreview = true

Sorry for the trouble on such a trivial thing.

dugajimi

Good to know 👍🏻