jsjoeio / speak-argentinian-spanish

speak argentinian spanish website
https://speakargentinianspanish.com/
1 stars 0 forks source link

Add pagination or infinite scroll to blog page #31

Open coding-in-public opened 1 year ago

coding-in-public commented 1 year ago

I was thinking pagination? It's pretty easy to do in Astro. If we do pagination, how many posts do you want on each page?

jsjoeio commented 1 year ago

Lol I don't have a good reason but I'm kinda against it 😂 Reasons:

so i'd learn for infinite scroll honestly and maybe do like load 4 at a time?

plus with our beautiful search in place, you can just search!

coding-in-public commented 1 year ago

Totally makes sense. We could also just show the latest 9–10 posts? then…

Something like this? prototype

jsjoeio commented 1 year ago

That looks great! I love the sound of that. Then I can start tagging posts with things like:

coding-in-public commented 1 year ago

Cool! I have an idea…what if we shall all posts by default, and then let people filter by categories. This is a sample just using SSR and query params. Thoughts? Obviously, we’d also have a search field, too? Also, I'm thinking we turn the /search route just into a blog with the search param? Does that make sense? Thoughts?

https://github.com/jsjoeio/speak-argentinian-spanish/assets/86967271/8983f7b2-2091-46bc-9bea-bce244032d6b

jsjoeio commented 1 year ago

I think that makes sense! I like that because:

Let's do it!