Skip to content

Commit 8ee30c2

Browse files
committed
fixed ordinal issue
1 parent 05d8e16 commit 8ee30c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/events/macros/pill.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% macro ordinal(day) %}
2-
{% set suffix = "th" %}
2+
{% set day = day|string %}
33
{% if day not in ["11","12","13"] %}
4-
{% set suffix = {"1":"st","2":"nd","3":"rd"}.get(day[-1], suffix) %}
4+
{% set suffix = {"1":"st","2":"nd","3":"rd"}.get(day[-1], "th") %}
55
{% endif %}
66
{{ day }}{{ suffix }}
77
{% endmacro %}

0 commit comments

Comments
 (0)