-
Notifications
You must be signed in to change notification settings - Fork 456
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
Allow posts and their media to be together in the filesystem #2266
Comments
I think this already works, even if it needs a bit of configuration. Here is part of it, the rest is left as exercise for the reader:
Then, just use the folder hierarchy inside posts for both your texts and your images, and put images and posts in the same places. If you have PRETTY_URLS enabled, you may need to use "../myimage.jpg" to link to images since posts are moved one level deeper. |
I confirm it works, though I feel like the need to use |
Late comment… As @spanezz, I, too, come from Ikiwiki, and I, too, like to have my files next to my pages. I think I managed to achieve it:
It is a very small website (for testing purpose), and I am new to nikola, so I have no idea whether this might have unintended bad consequences later… -- Louis |
@paternal Here’s a quick list of caveats I can think of:
|
Thanks for the answers! |
Hello, and thank you for nikola.
I am trying to migrate from my current ikiwiki setup, and got stuck at the request of nikola that static content needs to go into a completely different directory hierarchy than the posts that use it.
In my case, I occasionally blog a post that contains just a picture with a few lines of text (like http://www.enricozini.org/2015/bremen/halmerweg/ ) and it feels very unwiedly to maintain image and markdown content into two entirely separate parts of the file system.
gohugoio/hugo#147 has more use cases and insight on this kind of request, from hugo-land where it has recently been implemented.
The text was updated successfully, but these errors were encountered: