Hide CTA text on daily email pages

This commit is contained in:
Oliver Davies 2024-05-24 23:01:47 +01:00
parent a9d46b3ccd
commit 0672711d8b
2 changed files with 7 additions and 9 deletions

View file

@ -6,14 +6,6 @@
{{ parent() }}
<p>- Oliver</p>
{% block cta %}
{% if page.cta and site.ctas[page.cta] is defined %}
<p>P.S. {{ site.ctas[page.cta]|raw }}</p>
{% else %}
<p>P.S. {{ random(site.ctas)|raw }}</p>
{% endif %}
{% endblock %}
{% endblock %}
{% block content_bottom %}

View file

@ -32,7 +32,13 @@ use:
<div style="max-width: 550px;">
{{- email.blocks.content -}}
{{ email.blocks.cta }}
<hr/>
{% if email.cta and site.ctas[email.cta] is defined %}
<p>P.S. {{ site.ctas[email.cta]|raw }}</p>
{% else %}
<p>P.S. {{ random(site.ctas)|raw }}</p>
{% endif %}
</div>
</description>
<pubDate>{{ email.date|date('D, d M Y H:i:s') }} GMT</pubDate>