Вывожу ее таким образом, а вот как вывести медиафайлы в теге enclosure ума не приложу. Лента необходима для Яндекс Дзен. У них это обязательно условие
<item>
<title>[[+pagetitle]]</title>
<link>[[++site_url]][[~[[+id]]]]</link>
<pubDate>[[+publishedon:date=`%a, %d %b %Y %H:%M:%S +0300`]]</pubDate>
<author>Playhunter</author>
<enclosure url=" " type="image/jpeg" />
<description>[[+introtext:cdata]]</description>
<content:encoded>[[+content:cdata]]</content:encoded>
</item>
Павел Романов 01.06.2018 13:40 #
Андрей 01.06.2018 13:50 #
Помощь яндекса гласит
enclosure
Описание изображений, аудио- и видеофайлов в публикации. Может быть единственным упоминанием медиаконтента в публикации или дублировать элементы figure, media:content, размещаемые внутри content:encoded.
Андрей 01.06.2018 13:51 #
Павел Романов 01.06.2018 14:53 #
И использовать его для [[+content]]:
Андрей 01.06.2018 21:51 #
This page contains the following errors:
error on line 70 at column 75: Entity 'laquo' not defined
Below is a rendering of the page up to the first error.
Андрей 01.06.2018 21:50 #
This page contains the following errors:
error on line 70 at column 75: Entity 'laquo' not defined
Below is a rendering of the page up to the first error.