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

Question regrading fixed top Navigation bar and hide sidebar for homepage #656

Open
jeevatkm opened this issue Oct 6, 2024 · 2 comments

Comments

@jeevatkm
Copy link

jeevatkm commented Oct 6, 2024

Hello - Thanks for your Hugo Book theme. I have the following questions. I am looking forward to solutions.

  1. How can a fixed top navigation bar be added to cover the page width?

Question1

  1. How to hide the sidebar? In my case, I want to achieve it on only the homepage. I saw the bookToc: false on the right side

Question2

@jeevatkm jeevatkm changed the title Question reagrding top Navigation bar and hide sidebar for homepage Question regrading fixed top Navigation bar and hide sidebar for homepage Oct 7, 2024
@alex-shpak
Copy link
Owner

alex-shpak commented Oct 18, 2024

Hi!
There is injection template layouts/partials/docs/inject/body.html where you can add html code at the end of body, and then work with it with css to make static header, it is not supported out of the box, and as I see it, it might interfere with header in mobile view.

For the sidebar is kinda similar, you want to create a copy of page template into home page template and adjust rendering menu or not for the page.

Unfortunately there is no simple example I can give you :(

@jeevatkm
Copy link
Author

Thanks, @alex-shpak, for your response. I will take a shot at it.
Is adding these features and keeping the optional configuration to enable it feasible?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants