Handle all future ordinal years for New Year show

This commit is contained in:
2025-12-17 22:22:26 -05:00
parent 1cc9211e95
commit ad21bb045c

View File

@@ -156,12 +156,30 @@
<!--% IF date.format(date.now, '%m') != 12 || date.format(date.now, '%j') == 1 %--> <!--% IF date.format(date.now, '%m') != 12 || date.format(date.now, '%j') == 1 %-->
<!--% ordinal_year = ordinal_year - 1 %--> <!--% ordinal_year = ordinal_year - 1 %-->
<!--% END %--> <!--% END %-->
<!--% years.14 = 'Fourteenth' <!--% years.0 = 'th'
years.1 = 'st'
years.2 = 'nd'
years.3 = 'rd'
years.4 = 'th'
years.5 = 'th'
years.6 = 'th'
years.7 = 'th'
years.8 = 'th'
years.9 = 'th'
years.14 = 'Fourteenth'
years.15 = 'Fifteenth' years.15 = 'Fifteenth'
years.16 = 'Sixteenth' years.16 = 'Sixteenth'
years.17 = 'Seventeenth' years.17 = 'Seventeenth'
years.18 = 'Eighteenth' years.18 = 'Eighteenth'
years.19 = 'Nineteenth' years.19 = 'Nineteenth'
years.20 = 'Twentieth' %--> years.20 = 'Twentieth'
<!--% years.$ordinal_year %--> years.30 = 'Thirtieth'
years.40 = 'Fortieth'
years.50 = 'Fiftieth' %-->
<!--% index = ordinal_year % 10 %-->
<!--% IF ordinal_year < 21 || (index == 0 && ordinal_year < 51) %-->
<!--% years.$ordinal_year %-->
<!--% ELSE %-->
<!--% ordinal_year %--><sup><!--% years.$index %--></sup>
<!--% END %-->
<!--% END %--> <!--% END %-->