oliverdavies.uk/source/_includes/macros.html.twig

5 lines
197 B
Twig

{# Return a rounded count of daily emails I've sent (e.g. the actual number is 449, return 440+). #}
{% macro dailiesCount(dailies) %}
{{- dailies|length|round(-1, 'floor') -}}+
{% endmacro %}