-
Notifications
You must be signed in to change notification settings - Fork 922
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: How to disable landing page section? #173
Comments
Hi! So just to clarify, do you want a site that doesn't have a landing page like docsy.dev but has the docs section at the root so you land straight on it? You need to force not layout: but type: and then it works (I've just tried it) - have your content index page with frontmatter like:
|
Just playing around with it a bit more, you'd also probably want to remove any other folders from the example site (if you cloned it) and just have your docs sections as subsections of content. You'd then need to add type:docs to those pages too as they're not in a docs/ folder. Alternatively you could make the docs layout your default layout - in your own project, add a layouts/ directory that overrides the theme one and add your own _default/ directory with the list.html, baseof.html and single.html from the Docsy docs/ layout directory. Then pages by default will get the left nav and right menu. |
Hi, many thanks for your help. I try to move my subsection from I add the and when i go to section but i want to keep the left-menu as he looks like in the Do you know, how i could do? If i create a I see i lose this too: I tried to rename
|
I'll take a look! |
Just to let you know I haven't forgotten about this, I just need to find a bit of time to see if I can get my test site to do what you want and then let you know how I did it. :) Hopefully have something by the end of the week. |
I am also trying this, very new to Hugo and Docsy, tried copying the Thanks for the project, it works really well. |
Nearly there! Creating your own layouts/_default/ and copying the baseof.html, list.html, and single.html from the theme's layouts/docs/ into it is the way to go anyway, as then you don't need to specify any special types for your docs pages even if they're not in a docs folder - they get the "docs" type layout with the side nav by default. I've already got it working for a site that just has a Documentation section. Just checking if you also want your site to have the About, Blog, and Community pages? If so I'll need to keep tweaking things a bit to make sure the menus work, and you may need to create your own layout type for About and Community too so that they don't get the side nav.... |
Ah yes, I see what's happening. Let me see if I can fix it. |
Thanks @LisaFC! Really appreciate it.
I am only interested in the docs part of it. So no About, Blog and Community 😄 |
I've now fixed the sidebar menu so it stops showing just the subsection when you change pages, just need to figure out why the section index on the main landing page isn't working and we're ready to go. Once I have it all working I'll push my layout modifications to a copy in my own repo and you can have a look! |
Nearly there, just have to stop the search results page showing up in the sidebar. I'll have something up later today. |
Annnnnnd finally! https://docsyjustdocs.netlify.com/ Repo is here: https://github.com/LisaFC/justdocs Main differences are the overrides in layouts/, a much cut-down content/en/ with just our docs/ sections, and the search results page (search.md) has a nomenu page param so we can hide it from the menu (might be a useful feature for other sites who want to hide pages?) Hope you find it useful! I can share it on the mailing list and see if anyone else would like to use it as a reference. |
Thank you @LisaFC, that's awesome! |
This is perfect 👍 Really thanks for your help. |
Thanks a lot @LisaFC! |
I test on my documentation, and it work perfectly. Becareful with the option
We could close the issue if you want @LisaFC For better experience, if we could have an option like |
Glad it works for you! I'll close the issue for now, as I think switching the landing page on and off with a config flag would need significant refactoring (as I said, it changes the entire default layout and site hierarchy). |
@LisaFC Thank you so much for your efforts on this. Was fumbling around trying to make this work, and found this issue. Works great! |
It would be great to use the docsy docs section without the landing page.
I try to force
layout: docs
at top level, but i thinklayout/_default
apply before docs layout.Could you help me?
The text was updated successfully, but these errors were encountered: