如何将我的徽标添加到我的RSS Feed中?

时间:2010-10-29 17:53:02

标签: xml rss feeds atom-feed

如何将我的徽标添加到我的RSS Feed?

2 个答案:

答案 0 :(得分:1)

Atom RSS

<feed>
   ...
   <icon>http://example.org/favicon.ico</icon>
   <logo>http://example.org/logo.jpg</logo>
   ...
</feed>

RSS

<channel>
   ...
   <image>
    <url>http://www.snook.ca/img/rss_banner.gif</url>
    <title>Snook.ca</title>
    <link>http://www.snook.ca/jonathan/</link>
    <width>111</width>
    <height>32</height>
    <description>Snook.ca features tips, tricks, and bookmarks on web development</description>
  </image>
  ...
</channel>

Reference

答案 1 :(得分:0)

这适用于Atom Feed:

<feed>
   <logo><path to image></logo>
   <icon><path to icon></icon>
</feed>

这将有效RSS源:

<channel>
   ...
   <image>
    <url>url to image </url>
    <title>image title </title>
    <link><path to image></link>
    <width>pixel width</width>
    <height>pixel height</height>
    <description>description here </description>
  </image>
  ...
</channel>