hugo-coder icon indicating copy to clipboard operation
hugo-coder copied to clipboard

`featuredImage` does not correctly link to images in a page bundle

Open Tempystral opened this issue 2 years ago • 0 comments

Describe the problem:

The page's featured image does not display when using bundled resources. This worked in an older version of hugo-coder but after updating it appears to no longer work.

Steps to reproduce:

  1. Create a page bundle containing an image. I have a few in this bundle. image
  2. Set that image as the featuredImage

Observed Results:

The image does not display: image

I believe this is because of the | relURL pipe in the posts/single.html partial. If I remove that line and just display .Params.featuredImage it's fine:

image

I imagine having this relURL is probably useful for other use cases but it would be nice if Hugo supported bundled images in the header for easy asset organization.

Tempystral avatar Jan 07 '23 22:01 Tempystral