ruby-news / ruby-news.github.io

1 stars 4 forks source link

New way of working with tags #67

Closed Sergyenko closed 2 years ago

Sergyenko commented 2 years ago

🔴 WIP: Do not merge it

As tags in Jekyll are far from being ideal, we can use it for grouping post into archive, separated by month.

I will give more description, as we discuss it with the team.

Souravgoswami commented 2 years ago

Hi this is a good idea. But again, site is static, and tags can grow over time. If we post 10 articles a month, each year will have 12 tags * 10 articles = 120 articles. After 5 years we will reach to 600 or even more.

We can handle the images with lazy loading which is already being done on various pages, but the DOM will still be massive. Which can be optimized with IntersectionObserver, but if the user has slow device with slow connection, will cause slowdowns!

So the idea is not to generate so many tags. How about generating tags for 3 or 5 years?