Fix links in daily email RSS feed?

This commit is contained in:
Oliver Davies 2024-06-08 23:38:47 +01:00
parent ba5343d60c
commit 3e7df04592

View file

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