xianmin / hugo-theme-jane

A readable & concise theme for Hugo, color schemes to choose, easy to personalize. Working well since 2018.
https://xianmin.github.io/hugo-theme-jane/
MIT License
931 stars 288 forks source link

Change content/post to content/posts #287

Open chtsao opened 4 years ago

chtsao commented 4 years ago

Thanks for the wonderful theme. However, the post directory is set to be "/post" rather than the usual "/posts". Fix config.toml will not work. I am simply a user and know little about hugo and theme construction. Your kind help is deeply appreciated.

jwon commented 4 years ago

I have the same issue. My posts are located in the content/posts directory rather than content/post. I've tried changing mainSections in config.toml but It did not work.

The only fix seems to be moving the content/posts directory to content/post. Then everything works.

It would be great if this theme didn't hardcode the fact that the posts directory is in content/post but make it configurable.

Honestly, it might be best to standardize on content/posts since that is what the official Hugo documentation uses.

cantao commented 3 years ago

Yep, same here. Took some time to figure that out.

slyfoxgh commented 2 years ago

+1 Just installed the theme and can't figure out how to make "content/posts" work.