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

9 lines
278 B
Twig
Raw Normal View History

{# 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 %}
{% macro yearsExperience() %}
{{- today|date('Y') - 2007 -}}
{% endmacro %}