Show the exact number of sent daily emails

This commit is contained in:
Oliver Davies 2024-08-15 18:00:00 +01:00
parent 57be7178fc
commit c316004eb7
8 changed files with 1 additions and 19 deletions

View file

@ -1,5 +1,3 @@
{% import 'macros' as macros %}
<div>
<h2 class="text-xl font-bold">About me</h2>

View file

@ -1,4 +0,0 @@
{# Return a rounded count of daily emails I've sent (e.g. the actual number is 449, return 440+). #}
{% macro dailiesCount(dailies) %}
{{- dailies|length|round(-1, 'floor') -}}+
{% endmacro %}

View file

@ -9,9 +9,7 @@ use:
---
{% block content %}
{% import 'macros' as macros %}
<p>This is an archive of the {{ macros.dailiesCount(data.daily_emails) }} email messages I have sent to <a href="/daily">my daily mailing list</a> since the 12th of August, 2022. Enjoy!</p>
<p>This is an archive of the {{ data.daily_emails|length }} email messages I have sent to <a href="/daily">my daily mailing list</a> since the 12th of August, 2022. Enjoy!</p>
<div class="mt-6 space-y-16">
<div>

View file

@ -22,8 +22,6 @@ faqs:
{% block content %}
{% import 'macros' as macros %}
{# <h2>Who is this for?</h2> #}
{# Pain #}

View file

@ -5,8 +5,6 @@ button:
url: https://buy.stripe.com/aEU4h0gBc4ro0p27sz
---
{% import 'macros' as macros %}
{# Pain #}
Drupal 7 will be unsupported on the **5th of January 2025**.

View file

@ -6,8 +6,6 @@ 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>

View file

@ -2,8 +2,6 @@
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>.

View file

@ -2,8 +2,6 @@
title: Speaker Information
---
{% import 'macros' as macros %}
## Bio
Oliver is a Software Developer and Drupal Expert with {{ get_years_of_experience() }} 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.