Let’s assume I have a blog with multiple topics (tags): food, music, politics.
Is it possible to somehow determine the next and previous articles, within a topic, for pagination? Let’s say that someone is interested in only the “music” topic, within the current article, I’d rather have the pagination link to the next article for that topic only (and not stray into the politics topic, for example).
Somehow using current_article.tags
and something like next_article
and something like blog.articles.index current_article
all wrapped together?
This way, each topic could basically be it’s own self-contained blog.