getzola / zola

A fast static site generator in a single binary with everything built-in. https://www.getzola.org
https://www.getzola.org
MIT License
13.54k stars 947 forks source link

Posts organization #2275

Open realtica opened 1 year ago

realtica commented 1 year ago

Hello, is it possible to organize posts like this?:

/content/posts/2022/11/my_post/index.md

URL: http://example.com/my-post

I know you can use:

+++
transparent = true
+++

But a option in config.toml would be better an easier. Like: transparent_content=/posts/*/*

Keats commented 1 year ago

What's the usecase? You can already prefix content files by a date to organise things better

scouten-adobe commented 1 year ago

You could (manually, for each post) use an alias if you want to remove the date hierarchy.

Personally, I find it useful to leave the date structure present in most of my sites.

For example: https://github.com/scouten/ericscouten.travel/tree/main/content