hugo-toha / toha

A Hugo theme for personal portfolio
https://hugo-toha.github.io
MIT License
1.02k stars 581 forks source link

Support separation between posts and docs on folder level and sidebar level #167

Open dyingway opened 3 years ago

dyingway commented 3 years ago

Describe the solution you'd like

Split page as [POSTS],[docs] folder,and decide to show the _index.md or the list.

Describe alternatives you've considered

i search the themes\toha\layouts_default\list.html,and themes\toha\layouts\partials\navigators\sidebar.html, but i can't understand what make it's work as every content to show up at the sidebar, i wanna Split the content with his own folder for different folder,it will make more [POSTS] page,i can Split and make the content as docs page.

thank you very much.

hossainemruz commented 3 years ago

If I understand correctly, you want sidebar structure like this?

- Posts
     |_ Post 1
     | _ Post 2
- Docs
    | _ doc 1
    | _ doc 2

Is it right?

dyingway commented 3 years ago

i still learn english.thank you. i just wanna two page,for one link as: https://github.com/hugo-toha/ post, sidebar just show the [POSTS] folder content :

hossainemruz commented 3 years ago

Ok. Got it now. Currently, you can't do that. We have to add support for this use-case.

dyingway commented 3 years ago

thank you. I'll try it myself first to see if I can solve it。HOPE you can add this soon,by the way,the toc is great.

hossainemruz commented 3 years ago

You can keep this issue open so that we don't forget about it.

Emily-0616 commented 2 years ago

You can keep this issue open so that we don't forget about it.

Can you plan recently?

hossainemruz commented 2 years ago

Actually, I am working on another theme for documentation(still work-in-progress): https://docklify.github.io/ This documentation theme will use SCSS, dark mode, new blog page structure etc. Once I am done with that theme, I will restructure this theme. This theme will inherit the documentation module of the new theme.

Rihoj commented 2 years ago

@Emily-0616 I have done something similar to what you request with my blog site. https://github.com/Rihoj/rayprogramming.com You will need to make some layouts for the page, check layouts.photography. Hopefully this points you in the right direction. I was never able to figure out how to phrase this for a post. I did references pieces of hugo-toha/guides#13 to help as well.