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

Sticky navbar #92

Open
LITUATUI opened this issue Feb 4, 2023 · 4 comments
Open

Sticky navbar #92

LITUATUI opened this issue Feb 4, 2023 · 4 comments

Comments

@LITUATUI
Copy link

LITUATUI commented Feb 4, 2023

Please add the option to make the navbar sticky, or make it default.

Thanks!

@pantera-rosa
Copy link
Contributor

#100

@delize
Copy link

delize commented Dec 24, 2023

Hey @pantera-rosa / @benarmstead , when running this on:

$ hugo version                                                                                                                                                                      [13:36:06]
hugo v0.121.1-00b46fed8e47f7bb0a85d7cfc2d9f1356379b740+extended darwin/arm64 BuildDate=2023-12-08T08:47:45Z VendorInfo=brew

I have noticed that the navbar is not sticky on scroll down with the yaml configuration enabled, but instantly appears on a single pixel when scrolling up. It seems like this is not working as intended?

Screen.Recording.2023-12-24.at.1.39.40.PM.mov

It seems like the class is not being set on initial load, but shows up afterwards?

Screenshot 2023-12-24 at 1 43 46 PM Screenshot 2023-12-24 at 1 43 50 PM

@delize
Copy link

delize commented Dec 24, 2023

It seems like you used a custom class rather than using the default Bootstrap class of fixed-top?

@delize
Copy link

delize commented Dec 24, 2023

Apologies, looking back at git blame, your original PR had the correct class. Commenting on in #100 about the issue.

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

3 participants