Fix read more link, make it a paragraph, escape the HTML

This commit is contained in:
benjamin melançon 2019-01-19 23:49:16 -05:00
parent 8c3e1dcc88
commit 183434e5ba

View file

@ -39,7 +39,7 @@
{# The RSS Teaser view mode *must* be configured to output the body paragraph {# The RSS Teaser view mode *must* be configured to output the body paragraph
(summary) LAST; see below for why. #} (summary) LAST; see below for why. #}
{{ description|raw }} {{ description|raw }}
<a href="{{ item.node.url }}">Read more and discuss at agaric.coop.</a> {{ '<p><a href="'|escape('html') }}{{ link }}{{ '">Read more and discuss at agaric.coop.</a></p>'|escape('html') }}
{# Opening description tag is in paragraph template used for description, {# Opening description tag is in paragraph template used for description,
see field/field--field-body-paragraph--rss-teaser.html.twig and only the see field/field--field-body-paragraph--rss-teaser.html.twig and only the
closing description tag is here so that we can have the read more link closing description tag is here so that we can have the read more link