Description
Right now themes need to include a lot of verbose code in their pagination and search pages using libraries.source
just to get:
query
- if it is a search
- the search query
page
path
- next page link
- previous page link
It doesn’t make sense. Frontity themes should be easy to create.
User Stories
As a Frontity theme developer
I want to access pagination and search in the data objects
so that I don’t have to repeat the same code over and over on all my themes
Possible solution
Let’s improve searches and pagination by adding:
- For all entities:
data.link
data.query
- For searches:
data.isSearch
data.searchQuery
- For archives:
data.page
data.path
data.next
data.previous