The RSS feed markup

The RSS feed structure

<?xml version = "1.0" encoding = "UTF-8"?>
<rss
  xmlns:yandex="http://news.yandex.ru"
  xmlns:media="http://search.yahoo.com/mrss/"
  xmlns:turbo="http://turbo.yandex.ru"
  version="2.0">
    <channel>
        ...
        <item turbo="true">
            ...
            <turbo:content>
                <![CDATA[
                    <!-- Page content --> 
                ]]>
            </turbo:content>
        </item>
        <item turbo="true">
            ...
            <turbo:content>
                ...
            </turbo:content>
        </item>
        ...
    </channel>
</rss>
turbo:content *

Required

Sending the source site information

The data is sent in the channel element.

...
    <channel>
        <title>Feed name</title>
        <link>http://www.example.com</link>
        <description>Short description of the feed</description>
        <language>ru</language>
        <turbo:analytics></turbo:analytics>
        <turbo:adNetwork></turbo:adNetwork>
        <item turbo="true">
            <!-- Page information -->
        </item>
        ...
    </channel>
...
title
The RSS feed title.

If you export the entire site contents, specify the site name. If you export a site section, enter just the section title.

link
Domain of the site from which the data is passed.
description

Channel description in one sentence. Do not use HTML markup.

language

The article language according to the ISO 639-1 standard.

turbo:analytics

Web analytics tag for tracking traffic to Turbo pages.

Learn more.

turbo:adNetwork

Use it to display the Yandex Advertising network blocks and third-party ads connected through ADFOX on Turbo pages. Also use it to track the advertising revenue from Turbo pages.

Learn more.

item *

Page information.

To display Turbo pages, add the turbo="true" attribute. To disable the display of a Turbo page, set the value to false. For details, see Managing the display of Turbo pages.

One item element describes one page.

Required

Sending the page information

The data is sent in the item element.

...
    <item turbo="true">
        <link>http://www.example.com/page1.html</link>
        <turbo:source></turbo:source>
        <turbo:topic></turbo:topic>
        <pubDate>Tue, 21 Apr 2015 14:15:00 +0300</pubDate>
        <author>Ivan Ivanov</author>
        <turbo:content></turbo:content>
        <yandex:related></yandex:related>
    </item>
...
link *

The URL of the site page to generate the Turbo page for.

Requirements:
  • The link must contain the HTTP or HTTPS scheme prefix.
  • The link domain must be the same as the source site domain.
  • The maximum length of the URL is 243 ASCII characters.
  • Each URL must contain one article.

When the link is clicked, the header and the beginning of the text should fit the first screen at 1024 × 768 resolution.

turbo:source
The source page URL that can be sent to Yandex.Metrica.
turbo:topic

The page heading that can be sent to Yandex.Metrica.

pubDate

Content publication time on the source site.

Sent in the RFC-822 format.

author

The author of the article published on the page.

turbo:content *
yandex:related

You can post links to other resources or customize the display of the infinite scroll.

These links will be placed at the bottom of the Turbo page. To add links anywhere on the page, use Block of links to additional materials.

Infinite recommendations feed

View the infinite feed example.

Infinite feed can be created only from the articles that have Turbo pages included in the search results.

Add the type attribute with the value infinity to the yandex:related element. Inside the yandex:related element, specify the link element with the article URL.

To add an image to the article, use the img attribute with the picture URL.

The text wrapped in the link element shouldn't contain HTML elements.

...
    <yandex:related type="infinity">
       <link
        url="http://www.example.com/page.html"
        img="http://www.example.com/image.png">Link text
       </link>
       <link
        url="http://www.example.com/page2.html"
        img="http://www.example.com/image2.png">Link text
       </link>
    </yandex:related>
...

If you placed adds on Turbo pages through ADFOX, choose the <non-duplicated banners> option in the Code type parameter in the Parameters tab. For details, see .

Required

Sending the page content

Turbo page content is passed in the turbo:content element. It must be wrapped in the <![CDATA[]] > tag.
...
<turbo:content>
    <![CDATA[
        <!-- Page content section -->
        ]]> 
    </turbo:content>
...
The page content must contain the page header and the content part:
...
    <header>
        <h1>Page heading</h1>
        <figure>
            <img src="http://example.com/img.jpg"/>
        </figure>
        <h2>Second level heading</h2>
        <menu>
            <a href="http://example.com/page1.html">Link text</a>
            <a href="http://example.com/page2.html">Link text</a>
        </menu>
    </header>
    <!-- Content part -->
...
header *
h1 *

Page heading.

figure
The element used for generating a preview in the header. Can be used for generating a picture with caption.
img
The src attribute must contain the image URL.
Attention. JPEG, PNG, GIF formats are supported. The SVG format is not supported in Turbo pages.
h2

Level two heading.

menu
Navigation menu.
a

Menu item. The href attribute must contain the site page link.

Required

Characters and encodings

In the export file, specify the encoding used by your server. The most commonly used encodings are: UTF-8, Windows-1251, KOI8-R.

In all elements of the RSS file, except for the <![CDATA[]]> tag content, encode the following characters:
Character Name Replacement code
& Ampersand &
> Right pointed bracket >
< Left pointed bracket <
" Inverted commas "
' Apostrophe '

For example, the link http://example.com/?id=1&page=10 should look like http://example.com/?id=1&page=10.