Show this week's sent emails

This commit is contained in:
Oliver Davies 2024-12-14 22:39:41 +00:00
parent 391cdfabb4
commit f79cf2090b
2 changed files with 26 additions and 0 deletions

View file

@ -0,0 +1,13 @@
<section>
<h2>{{ title }}</h2>
<p>Here are the emails I sent this week:</p>
<ul>
{% for email in emails %}
<li><a href="{{ email.url }}">{{ email.title }}</a></li>
{% endfor %}
</ul>
</section>

View file

@ -4,12 +4,25 @@ meta:
title: The Daily Drupaler - Daily Software Development Thoughts and Tips | %site.name% title: The Daily Drupaler - Daily Software Development Thoughts and Tips | %site.name%
description: |- description: |-
Daily software development thoughts and tips by %site.name%. Daily software development thoughts and tips by %site.name%.
use: [daily_emails]
--- ---
{% block content %} {% block content %}
Subscribe to my daily newsletter for software professionals on software development and delivery, Drupal, DevOps, community, and open-source. Subscribe to my daily newsletter for software professionals on software development and delivery, Drupal, DevOps, community, and open-source.
{% include 'daily-email-form.html.twig' %} {% include 'daily-email-form.html.twig' %}
<section>
<h2>Still not sure?</h2>
<p>These are the emails I sent this week:</p>
<ul>
{% for email in data.daily_emails[:7] %}
<li><a href="{{ email.url }}">{{ email.title }}</a></li>
{% endfor %}
</ul>
</section>
{% endblock %} {% endblock %}
{% block content_bottom %} {% block content_bottom %}