Greater Dunnellon Historical Society

feed2js定制博客最近更新详解

       定制博客最近文章更新,选用feed2js是再明智不过了的!因为它简单,把定制的JS可放在网站的任何位置,易于网页排版和美化!方法如下:

   

      1.进入官方网站:http://feed2js.org/   然后选择菜单“build”,或者你也可以直接在IE下输入:http://feed2js.org/index.php?s=build 便可以开始定制了!

     2.在URL Enter the web address of the RSS Feed (must be in http:// format, not feed://)这行的下面输入 你的博文存放地址,比如我输入的我的jimdo博客地址是:http://lxgx.jimdo.com/rss/blog  ,如下图所示:

    3.在“Show channel? (yes/no/title) Display information about the publisher of the feed (yes=show the title and description; title= display title only, no=do not display anything) ”这一行下面选择“NO”,不然输出到你网站的RSS会在最上面有你的博文地址显示。如上图所示

     4.Number of items to display. Enter the number of items to be displayed (enter 0 to show all available)这一行是用来设置要显示的博文的数量,比如我就设置成10,如上图。

    5.Show/hide item descriptions? How much? (0=no descriptions; 1=show full description text; n>1 = display first n characters of description; n=-1 do not link item title, just display item contents)这行是设置博文显示模式的,选择1就会显示博文标题和它的所有内容,若选0则只显示博文标题,对于很多博主来说,利用它主要是显示博客的最近更新,所以最好选0!

    6.Show item author? (yes/no) Display the name of an item's author (yes=show the title and description; no=do not display anything)在这行下面选“NO".

    7.Use HTML in item display? ("yes" = use HTML from feed and the full item descriptions will be used, ignoring any character limit set above; "no" = output is text-only formatted by CSS; "paragraphs" = no HTML but convert all RETURN/linefeeds to <br> to preserve paragraph breaks)这行也选“NO"

     8.Show item posting date? (yes/no) Display the time and date for each item.这行是用来设置是否显示博文发表时的日期,最好选”nO"

     9.其它的选项可以默认,最重要的是“UTF-8 Character Encoding
Required for many non-western language web pages and also may help if you see strange characters replacing quotes in your output (see help pages for more information).”这一项了,一定要在use UTF-8 character encoding这里打勾,不然会出现乱码,无法显示汉字!

     10.把光标往上拉,直到找到如下图所示的地方,并点击"Generate Javascript"。

 

 

     最后重要提醒,如你发现当你更新博文后,你在feed2js定制的博文最近更新却没有同步更新,这时请你不要着急,那是因为官方要大约缓存60分钟后才会真正更新。

    11.这样显示RSS博客最近更新的JS定制就做好了,左边方框里面显示的就是你定制的JS,这时你可点击“Preview Feed"这个按钮查看定制的效果。觉得满意后就可以将那个JS复制到自己的网站。

Write a comment

Comments: 4
  • #1

    Juicers Reviews (Tuesday, 16 April 2013 11:25)

    This article was in fact precisely what I had been in search of!

  • #2

    Ray Ban Sunglasses Clearance (Friday, 08 August 2014 04:37)

    Although you will find various amounts of being funny, these movies can nevertheless be considered funny in one way or another except of course, to those who can not appear to giggle at the failures of others.

  • #3

    Gucci Purses Outlet (Friday, 08 August 2014 04:45)

    There's one site that perhaps committed the whole web site for numerous categories of breakdowns caught on camera.

  • #4

    Oakley Outlet (Friday, 08 August 2014 04:46)

    Some of these videos are epic fail and incredibly hilarious that you will the urge to run towards the lavatory.