awesome-python/website/static
Vinta Chen 8e72e8af8f
feat(website): strip #library-index from URL after All projects click
The "All projects" link in the category-page topbar pointed to
/#library-index so the browser would scroll to the library section on
arrival. The hash stayed in the URL, which looked like an internal anchor
state rather than a clean homepage URL.

On homepage load, if the hash is #library-index, scroll to the section
explicitly and use history.replaceState to drop the hash from the URL.
The scrollIntoView call covers the case where the script runs before the
browser's native anchor scroll, since replaceState removes the hash the
browser would have used.
2026-05-03 07:56:54 +08:00
..
favicon.svg feat: extract inline favicon to static SVG file 2026-03-18 18:34:15 +08:00
main.js feat(website): strip #library-index from URL after All projects click 2026-05-03 07:56:54 +08:00
og-image.png feat: add Open Graph image for social sharing 2026-03-24 12:22:35 +08:00
og-image.svg feat: add Open Graph image for social sharing 2026-03-24 12:22:35 +08:00
style.css style(website): add CSS for category-breadcrumb and assert absence on parent 2026-05-03 00:30:56 +08:00