Make years of experience dynamic based on the

...current year
This commit is contained in:
Oliver Davies 2024-01-10 07:11:57 +00:00
parent 455d27eef5
commit bd0dbfa7bc
10 changed files with 28 additions and 10 deletions

View file

@ -2,7 +2,6 @@
name: Oliver Davies
slogan: Certified Drupal expert, Developer and Consultant
email: oliver+website@oliverdavies.uk
yearsExperience: 16
assets_version: 3
meta:

View file

@ -1,3 +1,5 @@
{% import 'macros' as macros %}
<div>
<h2 class="text-xl font-bold">About me</h2>
@ -8,7 +10,7 @@
</div>
<div class="prose prose-p:text-black prose-a:font-light prose-a:text-blue-primary prose-p:text-lg prose-blockquote:border-blue-primary dark:marker:text-white prose-li:my-1 prose-li:text-lg prose-figcaption:text-white prose-li:text-black marker:text-black dark:prose-p:text-white dark:prose-invert dark:prose-a:text-blue-400 dark:prose-blockquote:border-blue-400 dark:prose-li:text-white hover:prose-a:no-underline prose-h2:text-xl prose-code:font-normal prose-h2:mb-4 prose-ul:my-3 dark:prose-hr:border-grey-400 prose-code:before:content-[''] prose-code:after:content-['']">
<p>I'm an Acquia-certified Drupal Triple Expert with {{ site.yearsExperience }} years of experience, an open-source software maintainer and Drupal core contributor, <a href="/talks">public speaker</a>, and host of the <a href="/podcast">Beyond Blocks podcast</a>. </p>
<p>I'm an Acquia-certified Drupal Triple Expert with {{ macros.yearsExperience }} years of experience, an open-source software maintainer and Drupal core contributor, <a href="/talks">public speaker</a>, and host of the <a href="/podcast">Beyond Blocks podcast</a>.</p>
</div>
</div>
</div>

View file

@ -0,0 +1,3 @@
{% macro yearsExperience() %}
{{- today|date('Y') - 2007 -}}
{% endmacro %}

View file

@ -26,6 +26,8 @@ faqs:
{% block content %}
{% import 'macros' as macros %}
{# <h2>Who is this for?</h2> #}
{# Pain #}
@ -34,7 +36,7 @@ faqs:
{# Fix #}
<p>As a professional Software Developer and Consultant with over {{ site.yearsExperience }} 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 {{ macros.yearsExperience }} years of Drupal and PHP experience, I have a lot of knowledge that I use to help customers and their projects.</p>
<h2>Some things I can help you with</h2>
@ -84,7 +86,7 @@ faqs:
<h2>Who am I?</h2>
<ul>
<li>I'm an Acquia-certified Drupal expert with over {{ site.yearsExperience}} years of professional development experience.</li>
<li>I'm an Acquia-certified Drupal expert with {{ macros.yearsExperience }} 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>

View file

@ -5,6 +5,8 @@ button:
url: https://buy.stripe.com/aEU4h0gBc4ro0p27sz
---
{% import 'macros' as macros %}
{# Pain #}
Drupal 7 will be unsupported on the **5th of January 2025**.
@ -66,7 +68,7 @@ An upgrade roadmap is a personalised audit of your Drupal website and includes d
## Who am I?
* I'm an Acquia-certified Drupal expert with over {numberOfYears} years of professional development experience.
* I'm an Acquia-certified Drupal expert with {{ macros.yearsExperience }} years of professional development experience.
* I'm a former Drupal Association employee who was responsible for improving and maintaining Drupal.org.
* 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.
* I'm a multiple-time DrupalCon speaker who regularly presents talks and workshops at conferences and meetups.

View file

@ -9,7 +9,9 @@ meta:
{% block content %}
Hi, I'm Oliver. I'm an Acquia-certified Drupal Triple Expert and Software Development Consultant with {{ site.yearsExperience }} years of experience.
{% import 'macros' as macros %}
Hi, I'm Oliver. I'm an Acquia-certified Drupal Triple Expert and Software Development Consultant with {{ macros.yearsExperience }} years of experience.
I'm a Drupal core contributor, module and theme maintainer, former Developer for the Drupal Association, and multiple-time DrupalCon speaker.

View file

@ -6,6 +6,8 @@ link: https://savvycal.com/opdavies/pair
{% block content %}
{% import 'macros' as macros %}
{# Pain #}
<p>Are you stuck adding a new feature or fixing a bug?</p>
@ -48,7 +50,7 @@ link: https://savvycal.com/opdavies/pair
<h2>Who am I?</h2>
<ul>
<li>I'm an Acquia-certified Drupal expert with over {{ site.yearsExperience }} years of professional development experience.</li>
<li>I'm an Acquia-certified Drupal expert with {{ macros.yearsExperience }} 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>

View file

@ -2,13 +2,15 @@
title: Press Info
---
{% import 'macros' as macros %}
The following information is provided as a cut-and-paste resource for conference organisers, media professionals, podcast hosts, and other interested parties.
Please feel free to use anything here as-is without checking with me first. If you have additional questions, you can <a href="mailto:{{ site.email }}">email me directly</a>.
## Short Bio
Oliver is a Software Developer and Drupal expert with over {{ site.yearsExperience }} years experience. He specialises in code quality, automated testing and test-driven development.
Oliver is a Software Developer and Drupal expert with {{ macros.yearsExperience }} years experience. He specialises in code quality, automated testing and test-driven development.
## Sample Topics

View file

@ -2,9 +2,11 @@
title: Speaker Information
---
{% import 'macros' as macros %}
## Bio
Oliver is a Software Developer and Drupal Expert with {{ site.yearsExperience }} years of experience. As well as consulting on large Drupal projects, Oliver helps Drupal Developers learn automated testing and test-driven development via a free email course and paid coaching and workshops. He regularly contributes to open-source software projects, including Drupal core.
Oliver is a Software Developer and Drupal Expert with {{ macros.yearsExperience }} years of experience. As well as consulting on large Drupal projects, Oliver helps Drupal Developers learn automated testing and test-driven development via a free email course and paid coaching and workshops. He regularly contributes to open-source software projects, including Drupal core.
## Photos

View file

@ -15,6 +15,8 @@ meta:
---
{% block content %}
{% import 'macros' as macros %}
<div class="space-y-16">
<div>
{# Pain #}
@ -109,7 +111,7 @@ meta:
<h2 class="text-lg font-bold">Who am I?</h2>
<ul>
<li>I'm an Acquia-certified Drupal expert with over {{ site.yearsExperience }} years of professional development experience.</li>
<li>I'm an Acquia-certified Drupal expert with {{ macros.yearsExperience }} 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>