Closed jamesdeluk closed 1 year ago
Current functionality
Posts go in the content/posts/ folder.
content/posts/
If I had a post called post.md in posts, the URL would be mysite.com/posts/post.
post.md
posts
mysite.com/posts/post
If I had a post called post.md in a folder in posts, say topic, the URL would be mysite.com/posts/topic/post.
topic
mysite.com/posts/topic/post
Requested functionality
That is, I can use subfolders within posts for organisation, but this doesn't change the URL.
Example usage: I could put all old posts in an archive subfolder but the URL remains the same.
archive
Seems it's a config.toml setting:
config.toml
[permalinks] posts = ':sections/:title'
(https://gohugo.io/content-management/urls/)
Describe the feature you want 描述你的功能需求
Current functionality
Posts go in the
content/posts/
folder.If I had a post called
post.md
inposts
, the URL would bemysite.com/posts/post
.If I had a post called
post.md
in a folder inposts
, saytopic
, the URL would bemysite.com/posts/topic/post
.Requested functionality
post.md
in a folder inposts
, saytopic
, the URL would bemysite.com/posts/post
.That is, I can use subfolders within
posts
for organisation, but this doesn't change the URL.Example usage: I could put all old posts in an
archive
subfolder but the URL remains the same.