-
-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
search.pages()
and search.page()
should return the data
object instead of the full Page
instance.
#251
Comments
search.pages()
and search.page()
should return the data
object instead of the full page object.search.pages()
and search.page()
should return the data
object instead of the full Page
instance.
I like this but aren't the functions For data, I'd say, there should be |
In Lume {% for article in search.pages("type=article", "date=desc") | data %}
<a href="{{ article.url }}">
<h1>{{ article.title }}</h1>
Loaded from {{ article.page.src.path }}
</a>
{% endfor %} But I think the |
Might it be possible to enable this behaviour in v1.0 via an option in the plugin’s config? |
Yes, it's a good idea. |
Implemented in v2 branch #446 |
This makes working with pages easier. For example, instead of this:
It would become to this:
If it's necesary to access to the
Page
instance (to get thesrc
data, for example) it's available atdata.page
. Example:Due this is a breaking change, it will be in Lume 2.0.
The text was updated successfully, but these errors were encountered: