Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dyingway opened this issue Nov 24, 2020 · 8 comments
Labels
Projects

Comments

@dyingway
Copy link

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
Copy link
Member

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

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

Is it right?

@dyingway
Copy link
Author

dyingway commented Nov 24, 2020

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 :

  • Posts
    |_ Post 1
    | _ Post 2
    and the other link as: https://github.com/hugo-toha/docs ,show the [docs] folder content:
  • Docs
    | _ doc 1
    | _ doc 2

@hossainemruz
Copy link
Member

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

@dyingway
Copy link
Author

dyingway commented Nov 24, 2020

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
Copy link
Member

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

@dyingway dyingway reopened this Nov 24, 2020
@hossainemruz hossainemruz added this to To do in Features Nov 30, 2020
@Emily-0616
Copy link
Contributor

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

Can you plan recently?

@hossainemruz
Copy link
Member

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
Copy link
Contributor

Rihoj commented Sep 30, 2021

@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.

@hossainemruz hossainemruz added enhancement New feature or request feature and removed feature-request enhancement New feature or request labels Oct 28, 2021
SrNetoChan pushed a commit to SrNetoChan/toha that referenced this issue Oct 7, 2022
Bumps [themes/toha](https://github.com/hugo-toha/toha) from `baa4774` to `06ee3c1`.
- [Release notes](https://github.com/hugo-toha/toha/releases)
- [Commits](hugo-toha/toha@baa4774...06ee3c1)

---
updated-dependencies:
- dependency-name: themes/toha
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@hossainemruz hossainemruz changed the title i wanna have a Split page as [POSTS] [docs] [blog],with the single sidebar(not list every content) Support separation between posts and docs on folder level and sidebar level Jan 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Status: Todo
Development

No branches or pull requests

4 participants