pages-themes / leap-day

Leap day is a Jekyll theme for GitHub Pages
https://pages-themes.github.io/leap-day/
Creative Commons Zero v1.0 Universal
206 stars 489 forks source link

Scroll to heading specified in URL #19

Closed lambdacasserole closed 6 years ago

lambdacasserole commented 6 years ago

Fixes issue #7. I'm not sure how clean it feels to do it this way, but essentially we're simulating a click on the appropriate heading listed at the left hand side of the page in the menu, if the URL specifies a heading to scroll to (like this https://pages-themes.github.io/leap-day/#heading-2). This has a couple of advantages:

But has a caveat:

I've tried to stick with the existing coding style.

stale[bot] commented 6 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.