Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

featuredImage does not correctly link to images in a page bundle #758

Open
Tempystral opened this issue Jan 7, 2023 · 0 comments
Open

Comments

@Tempystral
Copy link

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 Tempystral changed the title featuredImage does not show images in a page bundle featuredImage does not correctly link to images in a page bundle Jan 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant