Use a Twig extension to count the years of experience

This commit is contained in:
Oliver Davies 2024-05-03 12:30:24 +01:00
parent a516fa11e1
commit 9b19d7a036
10 changed files with 54 additions and 23 deletions

View file

@ -2,7 +2,3 @@
{% macro dailiesCount(dailies) %}
{{- dailies|length|round(-1, 'floor') -}}+
{% endmacro %}
{% macro yearsExperience() %}
{{- today|date('Y') - 2007 -}}
{% endmacro %}