awesome-python/website
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
..
static feat(website): strip #library-index from URL after All projects click 2026-05-03 07:56:54 +08:00
templates fix(website): remove duplicate tag on group/category pages 2026-05-03 07:51:39 +08:00
tests feat(website): add data-url to tag buttons for client-side routing 2026-05-03 00:44:43 +08:00
build.py fix(website): remove duplicate tag on group/category pages 2026-05-03 07:51:39 +08:00
fetch_github_stars.py refactor: replace manual total_seconds()/3600 with timedelta comparison 2026-04-19 22:02:14 +08:00
readme_parser.py add missing links of category descriptions 2026-05-02 23:35:24 +08:00