oliverdavies.uk/source/_layouts/_macros.html.twig
Oliver Davies 94a4190be6 Remove custom Twig extensions
Go back to calculating the talk count inline and using a macro to get
the number of years experience.
2024-11-30 20:58:54 +00:00

4 lines
78 B
Twig

{% macro yearsOfExperience() %}
{{ today|date('Y') - 2007 }}
{% endmacro %}