Use a Twig extension to count the years of experience
This commit is contained in:
parent
a516fa11e1
commit
9b19d7a036
10 changed files with 54 additions and 23 deletions
|
|
@ -2,7 +2,3 @@
|
|||
{% macro dailiesCount(dailies) %}
|
||||
{{- dailies|length|round(-1, 'floor') -}}+
|
||||
{% endmacro %}
|
||||
|
||||
{% macro yearsExperience() %}
|
||||
{{- today|date('Y') - 2007 -}}
|
||||
{% endmacro %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue