Webfeeds

What are webfeeds

我们的网络源使您可以将最新的scidev.net故事嵌入到您的网站中。只需将一些代码(如下所述)插入您的网络模板中,即可将我们的最新新闻和分析激活到您的网站中。阅读有关关注我们的其他方法here

How to get the embed code

Web提要图标。

在我们网站上查找WebFeeds图标。您将在每个版本的顶部找到它,并在我们的“主题”页面中找到它,使您可以在我们的内容中深入研究。

版本范围的提要将为您提供所有主题和所有文章类型的最新文章。主题页WebFeeds将允许您在构建WebFeed嵌入代码之前使用“ facet”工具栏选择过滤器,从而使您更加控制Feed中出现的内容。

主题页WebFeeds将允许您在构建WebFeed嵌入代码之前使用“ facet”工具栏(上图)选择过滤器。

Embedding the code in your website

我们的WebFeed

Once you have generated the embed code as per the instructions above, embedding the code in your website is as simple as copying and pasting into your web template(s). For example:

  您的网页
   
<! - 开始嵌入代码 - > <! - 结束嵌入式代码 - >

The webfeed HTML will then be generated within the

...
TAG(您可以在此处使用您喜欢的任何内容,此className仅用于说明目的)。

Customising the appearance of the feed

WebFeed使用SCIDEV特定类名称的简单标记使用,以允许您自定义提要的外观和感觉。以下是Feed的HTML结构以及默认样式定义:

Latest News

on science, technology & the developing world.

Supplied by scidev.net

我们已经设计了样式表和标记,以便使用简单的CSS易于覆盖。例如,要将默认字体颜色更改为蓝色,您将更改嵌入代码以使其看起来像这样:

  您的网页
   
<! - 开始嵌入代码 - > <! - 结束嵌入代码 - >
Baidu

That's it!