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

Activate last section heading when approaching footer #21

Merged
merged 1 commit into from
Mar 19, 2021

Conversation

Sta7e
Copy link
Contributor

@Sta7e Sta7e commented Feb 18, 2021

Hi everyone,

i want to propose a solution for #20 .

Currently, the activation of section headers is triggered when the container holding a section, i.e., page, crosses the upper window border. If the last section is small, like in the example site, the container never crosses the upper window border and thus the section header is not activated.

I would suggest to first check whether the footer is visible and if so, activate the last section heading.

@janraasch janraasch merged commit 12321ef into zjedi:master Mar 19, 2021
@janraasch
Copy link
Collaborator

Thank you, @Sta7e 👌.

Your changes are live on https://janraasch.github.io/hugo-scroll/ 🏌️‍♂️.

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

Successfully merging this pull request may close these issues.

2 participants