We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05d8e16 commit 8ee30c2Copy full SHA for 8ee30c2
templates/events/macros/pill.html
@@ -1,7 +1,7 @@
1
{% macro ordinal(day) %}
2
- {% set suffix = "th" %}
+ {% set day = day|string %}
3
{% if day not in ["11","12","13"] %}
4
- {% set suffix = {"1":"st","2":"nd","3":"rd"}.get(day[-1], suffix) %}
+ {% set suffix = {"1":"st","2":"nd","3":"rd"}.get(day[-1], "th") %}
5
{% endif %}
6
{{ day }}{{ suffix }}
7
{% endmacro %}
0 commit comments