From da1622d86b7d6819b7d77034a07ef75bc5e39c85 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Thu, 4 Jan 2024 22:39:58 +0000 Subject: [PATCH] Re-add wrapper for email content --- source/_pages/rss/daily.xml.twig | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/source/_pages/rss/daily.xml.twig b/source/_pages/rss/daily.xml.twig index 9ee16abbf..be44d4292 100644 --- a/source/_pages/rss/daily.xml.twig +++ b/source/_pages/rss/daily.xml.twig @@ -29,22 +29,24 @@ use: {{ site.url }}{{ email.url }} {{ site.url }}{{ email.url }} - {{- email.blocks.content -}} +
+ {{- email.blocks.content -}} -
-
+
+
- {%- if email.blocks.cta %} - {{ email.blocks.cta }} - {% else -%} - {% set ctas = [ - 'Are you still using Drupal 7 and don’t know what’s involved to upgrade to Drupal 10? Book a Drupal 7 upgrade consultation call or an upgrade roadmap.', - 'Need help or want another pair of eyes on your code? Book a 1-on-1 consulting call or an online pair programming session with a 100% money-back guarantee.', - 'If you\'re creating a new Drupal module, try my free Drupal module template.', - ] %} + {%- if email.blocks.cta %} + {{ email.blocks.cta }} + {% else -%} + {% set ctas = [ + 'Are you still using Drupal 7 and don’t know what’s involved to upgrade to Drupal 10? Book a Drupal 7 upgrade consultation call or an upgrade roadmap.', + 'Need help or want another pair of eyes on your code? Book a 1-on-1 consulting call or an online pair programming session with a 100% money-back guarantee.', + 'If you\'re creating a new Drupal module, try my free Drupal module template.', + ] %} -

P.S. {{ random(ctas) }}

- {% endif %} +

P.S. {{ random(ctas) }}

+ {% endif %} +
{{ email.date|date('D, d M Y H:i:s') }} GMT {{ email.snippet }}