添加您的博客
将您的博客添加到 Planet OpenStack
Planet aggregator 的配置保存在一个 git 仓库中,并通过 Gerrit 进行管理。要将您的 feed 添加到 Planet OpenStack,只需克隆 git://git.openstack.org/openstack/openstack-planet,然后按照正常的 OpenStack 开发流程 提交您的更改。
内容分离
您可能希望标记或标注单个帖子,或者仅将某些帖子分类以在 Planet OpenStack 中聚合。不同的博客软件有不同的方法来提供仅聚合您标记或标记在“openstack”类别下的帖子的 feed,例如。
- 在 Blogger 中:特定标签的 feed URL 为 http://xxx.blogspot.com/feeds/posts/default/-/labelname
- 在 WordPress 中:您可以通过将以下内容添加到 feed URL 链接的末尾来提供仅特定类别的 feed:http://example.com/wp-rss2.php?cat=42 或 http://example.com/category/categoryname/feed。另请参阅:http://codex.wordpress.org/WordPress_Feeds
- WordPress.com 用户: RSS2 feed 有一个小的問題,因此您需要使用您的 Atom feed (http://username.wordpress.com/feed/atom) 或在 RSS2 feed 的末尾添加 ?mrss=off。示例 http://blog.site.com/category/ubuntu/feed/?mrss=off
- WordPress 2.7 用户: 当 Permalink 设置为默认值时,上述示例 feed 链接对特定类别的 RSS2 feed 不起作用。使用 http://example.com/?cat=4&feed=rss2 代替。有关详细信息,请参阅 论坛讨论。对于那些在其官方 Wordpress.com 网站上托管博客的人,这意味着您没有在自己的服务器上托管 wordpress,最新的稳定版本是 WordPress 3.8,因此可以安全地假设此版本特定的问题不会影响您。(添加于 2013 年 12 月 19 日)
- 在 Drupal 中:您可以使用分类法来标记您的内容并生成来自这些分类法的 RSS feed。有关更多信息,请参阅 此博客文章 下的“Taxonomy Generated Feeds”。
- 在 LiveJournal 中:特定标签的 feed URL 为 http://example.livejournal.com/data/rss?tag=foobar
- 在 Habari 中:特定标签的 feed URL 为 http://example.com/tag/foobar/atom
- 在 Tumblr 中:特定标签的 feed URL 为 http://example.tumblr.com/tagged/foobar/rss
- 对于没有过滤支持的其他博客:您可以使用 Yahoo Pipes 来过滤您的 feed,但来自 Planet Ubuntu 侧边栏和您的头像的链接也将指向该 feed。
添加您的 Feed
从 git 中检出配置文件
$ git clone git://git.openstack.org/openstack/openstack-planet $ cd openstack-planet
接下来,将您的 hackergotchi<<FootNote(您的 hackergotchi 应该缩放到大约 100x100 像素,大致即可。)>> 放入 images/ 子目录
$ cp ~/hackergotchi.png images/yourusername.png $ git add images/yourusername.png
如果您没有立即要添加的 hackergotchi,请注释掉该行(在开头使用 #)或完全删除该行。
完成此操作后,将类似以下的内容添加到 planet.ini 文件的末尾
[http://blog.example.com/~yourusername/feed?category=openstack] name = Your Name Here face = yourusername.png nick = yourusername
/!\ 请在“name”字段中至少使用您的真实姓名。
当您对您的条目感到满意时,就可以检入您的更改了
$ git commit -a -m "Added <yourusername> to Planet OpenStack" $ git review
出现问题了吗?
通过 IRC #openstack-infra 或邮件列表 openstack-infra@lists.openstack.org 联系 OpenStack Infra 团队。