Skip to content

Refactor setcontent handles and directives#1599

Merged
bobdenotter merged 4 commits intomasterfrom
refactor/setcontent-handles-and-directives
Jul 3, 2020
Merged

Refactor setcontent handles and directives#1599
bobdenotter merged 4 commits intomasterfrom
refactor/setcontent-handles-and-directives

Conversation

@I-Valchev
Copy link
Copy Markdown
Member

Before:

{% setcontent pages = 'pages/latest/3' %}
{% setcontent pages = 'pagest/first/3' %}

After:

{% setcontent pages = 'pages' latest limit 3 %}
{% setcontent pages = 'pages' earliest limit 3 %}

latest and earliest are essentially shortcuts for order '-id' and order 'id' respectively.

Copy link
Copy Markdown
Member

@bobdenotter bobdenotter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noice! 👍

@bobdenotter bobdenotter merged commit 16be005 into master Jul 3, 2020
@bobdenotter bobdenotter deleted the refactor/setcontent-handles-and-directives branch July 3, 2020 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants