Skip to content

Copy image to final output folder? #1945

Answered by pdehaan
lucasnantonio asked this question in Q&A
Discussion options

You must be logged in to vote

I think I'm a bit confused here.
In your input folder you have a template, ./input/post2.md, which references absolute images like ![](/images/img2.jpg). And your output folder writes the file as /post2/index.html and your images are deployed as /images/img2.jpg.
I wouldn't expect any images to break once deployed (assuming you just deploy the /site output folder) since they're absolute URLs. If they were relative URLs, I could see that it could be a potential issue though.

If you have a simple repo w/ test case I can take a closer look. Or if not I can probably create it from scratch.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@pdehaan
Comment options

pdehaan Aug 23, 2021
Collaborator

@lucasnantonio
Comment options

Answer selected by lucasnantonio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants