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

Post Preview Image not using img_path attribute value #1044

Closed
dvdmtw98 opened this issue May 17, 2023 · 0 comments
Closed

Post Preview Image not using img_path attribute value #1044

dvdmtw98 opened this issue May 17, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@dvdmtw98
Copy link

NOTE: Before you start, the following should be completed.

  • Read Wiki to understand the usage and the correct effect of functional design.
  • Make sure no similar issue(including closed ones) exists.
  • Make sure the bug is found in the latest code of the master branch.

Describe the bug

The Preview Image feature introduced in v6 does not use the img_path attribute when looking for the image

img_path: /assets/
image: 
    path: images/post-name/image-name.png

When the following structure is used the Banner image loads properly in the article. The img_path value is joined with the image path value to get the full path to the image.
But the same image does not load as the preview image as it expects the path mentioned in image path to be the complete path i.e. value of img_path is ignored/not used.

To Reproduce

Steps to reproduce the behavior:

  1. Use the img_path and image path values together
  2. Preview Image does not work

Expected behavior

The img_path value should be used to determine the path to use to look for the preview image

Logs/Screenshots

YAML attributes used

img_path: /assets/
image: 
    path: images/nat-explained/nat-explained-banner.png

Preview Image not Working

Working Banner Image

Environment

Command Version
ruby -v
gem -v
bundle -v
bundle exec jekyll -v
bundle info jekyll-theme-chirpy

Additional context

@cotes2020 cotes2020 added the bug Something isn't working label May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants