So it’s basically page bundles all in one place. In order to organize them better, I’d like to put all of them in separate subdirectories of years and months like this:
content/
posts/
2025/01/post1/index.md
2025/02/post2/index.md
2024/05/post3/index.md
But at the same time keep the url the same so it’s not affecting my URLs, so they’re all accessible via example.com/p/post1, example.com/p/post2 and so on…
Wouldn’t it be cumbersome if I had like 100,000 posts all within my public/ directory(not spread out in different directories) for the OS or the web server? I mean to handle this huge number of inodes in just one directory…?
I just put all of my posts in my content/ based on years and months, this is fine so far, but after compilation they all went under public/p/ with no separations at all. So now imagine if I had 100,000 subdirectories in public/p, it would hit the inodes threshold, wouldn’t it?
Yes, you’re right BUT I think I can’t know for sure unless I test it for myself. Otherwise, one way would be to simply forget about clean urls like: /p/post-title and use:
[permalinks] posts = ‘/:year/:month/:slug’
This way I have everything well structured in the public/ directory under year/month/ subs as well so the performance is guaranteed. Do you agree?