You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browser and version [e.g. Chrome 86.0]: Chrome Version 127.0.6533.88 (Official Build) (64-bit)
Hugo Version [ >=0.112.4 expected]: 0.128.2
Theme Version [e.g. v4.0, master, or commit-id ]: master
Steps to reproduce the behavior:
Checkout to exampleSite branch.
Change config.yml such that params.cover.linkFullImages is set to true.
Run hugo server -D
Click the cover image in the "Markdown Syntax Guide" page
See a 404 not found
Expected behavior:
No 404 not found.
Repo/Source where this issue can be reproduced:
Screenshots
Additional context
The URL is http://localhost:1313/hugo-PaperMod/posts/markdown-syntax/images/msg.png. However it should be http://localhost:1313/hugo-PaperMod/images/msg.png. I found the problem is due to this line:
We have cover.relative parameter to let the code know if your image is located in the static folder (relative: false) or in the page bundle (relative: true).
Describe the bug
Steps to reproduce the behavior:
exampleSite
branch.config.yml
such thatparams.cover.linkFullImages
is set to true.hugo server -D
Expected behavior:
No 404 not found.
Repo/Source where this issue can be reproduced:
Screenshots
Additional context
The URL is
http://localhost:1313/hugo-PaperMod/posts/markdown-syntax/images/msg.png
. However it should behttp://localhost:1313/hugo-PaperMod/images/msg.png
. I found the problem is due to this line:hugo-PaperMod/layouts/partials/cover.html
Line 12 in 9ea3bb0
Change it from
(path.Join .RelPermalink .Params.cover.image)
to(.Params.cover.image)
solves the problem.I'll create a PR if this solution is applicable.
The text was updated successfully, but these errors were encountered: