I recently read that shorter URLs rank higher in the search results, but I suspect it might also have an SEO advantage to sort posts, topics, etc... into folders.
Do you recommend shorter URLs, for example:
example.com/1/title-of-the-post
example.com/5/another-post
or a folder containing all the posts and topics of the same type, for example:
example.com/posts/1/title-of-the-post
example.com/posts/5/another-post
example.com/topics/a-topic-name