diff options
-rw-r--r-- | layouts/index.rss.xml | 6 | ||||
-rw-r--r-- | layouts/partials/rss/item.html | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/layouts/index.rss.xml b/layouts/index.rss.xml index 355c26a..cf2b476 100644 --- a/layouts/index.rss.xml +++ b/layouts/index.rss.xml @@ -1,4 +1,8 @@ -<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"> +<rss xmlns:atom="http://www.w3.org/2005/Atom" + xmlns:yandex="http://news.yandex.ru" + xmlns:media="http://search.yahoo.com/mrss/" + xmlns:turbo="http://turbo.yandex.ru" + version="2.0"> <channel> <title> {{- .Site.Title -}} diff --git a/layouts/partials/rss/item.html b/layouts/partials/rss/item.html index f5c34dd..ec31841 100644 --- a/layouts/partials/rss/item.html +++ b/layouts/partials/rss/item.html @@ -15,7 +15,7 @@ <guid> {{- .Page.Permalink -}} </guid> - <description> + <turbo:content> {{- "<![CDATA[" | safeHTML -}} {{- with $params.featuredimage -}} <div class="featured-image"> @@ -32,5 +32,5 @@ {{- end -}} {{- $content | replaceRE `<figure[^>]*>.*</figure>` "" | replaceRE `<img[^>]*( /)?>` "" | safeHTML -}} {{- "]]>" | safeHTML -}} - </description> + </turbo:content> </item>
\ No newline at end of file |