Modifier: is_leap_year

Returns true if date is in a leap year. Try and find a regular use for this one, we dare you.

date: November 2016 
another_date: November 2017
{{ if date | is_leap_year }}
{{ if another_date | is_leap_year }}

Additional Reading

Learn how to use and chain modifiers in the Antlers template guide.

Last modified on March 31, 2016