templates/rss.html.twig line 1

Open in your IDE?
  1. <rss version="2.0"  encoding="utf-8" xmlns:atom="http://www.w3.org/2005/Atom">
  2.     <channel>
  3.         <title>Новости Корпорации развития Московской области</title>
  4.         <link href="https://mosregco.ru/publications" rel="self" />
  5.         <link href="https://mosregco.ru/" />
  6.         <language>ru-RU</language>
  7.         <updated>{{ 'now' | date('Y-m-d') }}T{{ 'now' | date('H:i:s') }}Z</updated>
  8.         <author>
  9.             <name>Корпорация развития Московской области</name>
  10.         </author>
  11.         <id>https://mosregco.ru/</id>
  12.         {% for new in publications %}
  13.             <item>
  14.                 <title>{{ new.title | raw }}</title>
  15.                 <link href="{{ url('app_publication_show', {'slug' : new.slug }) }}" />
  16.                 <updated>{{ new.created ? new.created | date('Y-m-d H:i:s') }}</updated>
  17.                 <description>{{ new.content | striptags | slice(0,150) }}...</description>
  18.             </item>
  19.         {% endfor %}
  20.     </channel>
  21. </rss>