FeedBurner和DasBlog的DotNetKicks Flare

A number of folks have asked about the "flare" on my site that appears at the bottom of each post. This is possible via a number of things.

许多人问起我网站上出现在每个帖子底部的“耀斑”。 这可以通过很多事情来实现。

First, the current version of DasBlog (get it via SubVersion) supports FeedBurner directly. FeedBurner will host your RSS Feed for you and DasBlog will automatically redirect folks who ask for your original feed to the new FeedBurner one, like http://feeds.feedburner.com/ScottHanselman. This will allow you to manipulate your feed in a number of new ways, including the addition of "feed flare."

首先,当前版本的DasBlog (通过SubVersion获取)直接支持FeedBurner 。 FeedBurner将为您托管RSS Feed,而DasBlog会自动将要求您提供原始Feed的用户重定向到新的FeedBurner,例如http://feeds.feedburner.com/ScottHanselman 。 这样一来,您就可以通过多种新方式来操作Feed,包括添加“ feed flare”。

DasBlogFeedBurner1

Gavin Joyce kindly created a FeedFlare for DotNetKicks.com that I put up at http://www.hanselman.com/blog/kickitflare.xml. I told FeedBurner, via their web-based configuration interface to use this new flare and it now appears automatically at the bottom of each of my posts along with a few other bits of flare.

加文·乔伊斯(Gavin Joyce)友好地为DotNetKicks.com创建了FeedFlare,我将其放在http://www.hanselman.com/blog/kickitflare.xml上。 我通过基于Web的配置界面告诉FeedBurner使用这个新的喇叭,现在它会自动出现在我每个帖子的底部,以及其他一些喇叭。

Then I added this line to my itemtemplate.blogtemplate file in my DasBlog specific theme folder:

然后,将这一行添加到DasBlog特定主题文件夹中的itemtemplate.blogtemplate文件中:

<script src="http://feeds.feedburner.com/ScottHanselman?flareitem=<%PermalinkUrlRaw%>" type="text/javascript"></script>

<script src =“ http://feeds.feedburner.com/ScottHanselman?flareitem= <%PermalinkUrlRaw% > ” type =“ text / javascript”> </ script>

This includes a bit of JavaScript from FeedBurner that creates the flare. I can have different flare in the feed and the site.

其中包括FeedBurner的一些JavaScript,可创建照明弹。 资讯提供和网站上会有不同的耀斑。

NOTE: Apparently there's some kind of known bug in FeedBurner on their side related to DasBlog's correct usage of the Description element in the RSS Feed, but they know about it and they are working on it. This causes, it seems, flare to not display in some aggregators.

注意:显然,FeedBurner方面存在某种已知的错误,与DasBlog正确使用RSS Feed中的Description元素有关,但他们知道这一点,并且正在研究它。 看来,这导致光晕在某些聚合器中不显示。

I've been VERY happy with FeedBurner and it's cut my bandwidth in half and added a host of new abilities like more detailed statistics on the number of subscribers, where they're from and what aggregator they use.

我对FeedBurner感到非常满意,它将带宽减少了一半,并添加了许多新功能,例如有关订户数量,来自何方以及使用何种聚合器的详细统计信息。

So, the combination of DasBlog's auto-redirect, the FeedFlare API, modifying the DasBlog item template and their FeedFlare JavaScript make it so.

因此,结合了DasBlog的自动重定向,FeedFlare API,修改DasBlog项模板及其FeedFlare JavaScript,就可以做到这一点。

翻译自: https://www.hanselman.com/blog/dotnetkicks-flare-for-feedburner-and-dasblog

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值