Re-add and use custom Twig extensions

This commit is contained in:
Oliver Davies 2025-05-04 17:48:56 +01:00
parent 26bffdb58d
commit 87cf41dea8
14 changed files with 1841 additions and 26 deletions

View file

@ -23,8 +23,6 @@ faqs:
{% block content %}
{% import "_macros" as macros %}
{# <h2>Who is this for?</h2> #}
{# Pain #}
@ -33,7 +31,7 @@ faqs:
{# Fix #}
<p>As a professional Software Developer and Consultant with {{ macros.yearsOfExperience }} years of Drupal and PHP experience, I have a lot of knowledge that I use to help customers and their projects.</p>
<p>As a professional Software Developer and Consultant with {{ get_years_of_experience() }} years of Drupal and PHP experience, I have a lot of knowledge that I use to help customers and their projects.</p>
{# 1st call to action #}
@ -93,7 +91,7 @@ faqs:
<h2>Who am I?</h2>
<ul>
<li>I'm an Acquia-certified Drupal expert with {{ macros.yearsOfExperience }} years of professional development experience.</li>
<li>I'm an Acquia-certified Drupal expert with {{ get_years_of_experience() }} years of professional development experience.</li>
<li>I'm a former Drupal Association employee who was responsible for improving and maintaining Drupal.org.</li>
<li>I'm a Drupal core contributor and maintain numerous Drupal projects, including the Override Node Options module, which is used on over 38,000 websites.</li>
<li>I'm a multiple-time DrupalCon speaker who regularly presents talks and workshops at conferences and meetups.</li>