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:
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:https://github.com/adityatelange/hugo-PaperMod/blob/9ea3bb0e1f3aa06ed7715e73b5fabb36323f7267/layouts/partials/cover.html#L12
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.