Sign in
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

Little trick code

#930
Avatar photoTomasz Dziuda

If you want to solve it via Handlebars:

You can try if

`{{#checkIf (date createdAt ‘YYYYMM’) > 201810}} NEW {{/checkIf}}`

will work (it uses subexpression), but I suppose that it won’t as date helper will return string, not number.

In my opinion you will have to create a custom helper – in my opinion there is no other way to achieve this.

--
Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!