Is it enough to create one folder (images). And inside it add all the pictures of posts?
I want to create a config in the _config.yml file. And there, specify the images folder url. Example: image-path: /images.
And inside the posts, it’s enough to set the name of the images: <img src = "{{site.image-path}} /name-of-image.jpeg">. Will this work correctly with images? It seems to me convenient.
That said I am not sure what it is gaining you other than a single place to edit if you want to change it in the future. I just put my images in assets/images and link to them with that url.
yes, you can put them where ever you want, jekyll does not do anything special to images - jekyll just copies them from where ever they are to the same location within the _site folder.
I sometimes put them in sub directories within the images folder if I feel it makes sense.
If you are trying to store the images for a post with a particular post, I don’t think that works too well, I have seen that asked before and don’t think that is a normal workflow.
If you are trying to store the images for a post with a particular post, I don’t think that works too well, I have seen that asked before and don’t think that is a normal workflow.
What are you mean? Please, could you clarify this point? Sorry, maybe I have some trouble with my English understand…)
I don’t think that works too well
If I store all my post’s images into one folder, it’s will be bad?
I have seen that asked before and don’t think that is a normal workflow.
Please, can you tell me. How are you working with images for your posts? Maybe I should do create folders for each post, where I put post’s images? Example: /assets/images/post-name-folder/image1.jpg + image2.jpg etc
sometimes people want to keep the images with the article - so they want to store the asset in a folder next to the post, but this does not work if I remember correctly.
All the images in one folder is fine, that is what I do. You can use different folders like your example if you want, all up to you.