Sign in

Little trick code

#930
Tomasz 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!