What is Nostr?
Francisco Tolmasky /
npub163g…rfwu
2024-11-03 23:57:31

Francisco Tolmasky on Nostr: Almost all blogs put “next page” URLs at /2, /3, … /n. These are *bad URLs*, ...

Almost all blogs put “next page” URLs at /2, /3, … /n. These are *bad URLs*, since they’re constantly changing. Instead, do the following: choose how many posts you want per page (p), as usual. But make an exception for the main page, which waits to hit 2*p posts before dumping p posts to the next page all at once. Now your “next pages” won’t change, so they can have persistent URLs! So, number your URLs in *decreasing* order: /n, /n-1, … /1. As a bonus, “/1” conveniently has your first posts!
Author Public Key
npub163gtwgvr2qh6sxt6zg2h4jtrms6p2dj88ydrx3w0lql83lt5p3qqp6rfwu