oliverdavies.uk/source/_layouts/daily_email.html.twig

33 lines
1.3 KiB
Twig
Raw Normal View History

2024-01-03 20:00:00 +00:00
{% extends 'page' %}
{% block content_wrapper %}
<time datetime="{{ page.date|date('Y-m-d') }}">{{ page.date|date('F jS, Y') }}</time>
{{ parent() }}
<p>- Oliver</p>
2024-02-18 20:19:58 +00:00
{% block cta %}
{% if page.cta and site.ctas[page.cta] is defined %}
<p>P.S. {{ site.ctas[page.cta]|raw }}</p>
{% else %}
2024-02-18 20:19:58 +00:00
{% set ctas = [
'Are you still using Drupal 7 and dont know whats involved to upgrade to Drupal 10? <a href="https://www.oliverdavies.uk/call">Book a Drupal 7 upgrade consultation call</a> or <a href="https://www.oliverdavies.uk/drupal-upgrade">an upgrade roadmap</a>.',
'Need help or want another pair of eyes on your code? Book a <a href="https://www.oliverdavies.uk/call">1-on-1 consulting call</a> or an <a href="https://www.oliverdavies.uk/pair">online pair programming session</a> with a 100% money-back guarantee.',
'If you\'re creating a new Drupal module, try my <a href="https://github.com/opdavies/drupal-module-template">free Drupal module template</a>.',
] %}
<p>P.S. {{ random(ctas)|raw }}</p>
{% endif %}
2024-02-18 20:19:58 +00:00
{% endblock %}
2024-01-03 20:00:00 +00:00
{% endblock %}
{% block content_bottom %}
{% include 'daily-email-form.html.twig' with {
intro: 'Sign up here and get more like this delivered straight to your inbox every day.',
title: 'Was this useful?',
} %}
{% include 'about-me.html.twig' %}
{% endblock %}