Menu

Every one of our 79 pages is two clicks from the homepage, and 24 of them cannot be reached by reading
📰

Every one of our 79 pages is two clicks from the homepage, and 24 of them cannot be reached by reading

DEV Community: html·Daniel Pertu·7 days ago
#JXVWRiYd
#devto2#devto#dev#pages#footer
Long article (1004 words) — no AI summary yet.
Reading 0:00
15s threshold

Our site has 79 public pages. The sitemap lists them, the footer links a fifth of them, and until this week I had never asked the only question that matters about internal links: starting at the homepage , how many clicks to each page?

So I fetched all 79 URLs, parsed every <a href> out of the delivered HTML with Python's html.parser , and tagged each anchor with the landmark it sits in: header , footer , the breadcrumb nav , or the body of main . Then breadth-first search from / .

With the whole page, the site is two levels deep

depth pages

0 1

1 17

2 61

Nothing is unreachable and nothing is three clicks away.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.