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
Better handling of images in Hugo bundles #324
Comments
@finex Can you please provide a minimal reproducible example of what's happening and what's the expectation? |
Hi, of course @kaushalmodi :-) 🙅♂️ Current behaviour:valid with bot single org file and one post per file ox-hugo copies images (from the post body) to /static folder ( 😄 Expected behaviour:It should be added a new parameter to force the copy of images to the page bundle directory instead than the static one. Org file structure:
posts.org details: Result:
❤️ Extra "like to have" :This option should be used also to enhance my previous report (#301 ): images on custom front matter should also be copied in the page bundle directory. |
Hi @kaushalmodi , did you evaluated my proposal? This is the last problem left which prevents me to use ox-hugo (and Hugo) for my new "ready to be launched" website 😀. Let me know if you've some suggestions, even a custom local script to automate this task. Thank you for all your work on this project! |
Oh boy, it's already been 3 months since this issue was created. My work's been too busy. I'll get to this once I find some time. Such major features need a lot of testing and also documentation. |
Great, I don't know elisp (yet) so I can't help with coding but if you need help for testing or something else feel free to ask :-) thank you! :-) |
@finex I have already added this feature, but I misunderstood this feature request for something else :). Well, now I have this documented as well. Please refer to this documentation on https://ox-hugo.scripter.co/doc/images-in-content/#images-and-page-bundles and let me know if that resolved this issue. |
Hi, yes, it works :-) Thank you :-) |
That's fine, but there is a major issue with saving images on
static
folder: those images cannot be processed by Hugo (see Hugo Image processing ).I started my ox hugo experimentation with the strategy proposed by the hugo documentation ( ox hugo Images in content ) but, having to process the images, at the moment I have to copy the files by hand to the directory containing the post. I am using
:EXPORT_HUGO_BUNDLE:
in order to create page bundles and I've disabled Emacs optionorg-hugo-default-static-subdirectory-for-externals
.It would be awesome that the images would be copied from the org directory to the page bundle directory.
Originally posted by @finex in #91 (comment)
The text was updated successfully, but these errors were encountered: