blogger首页输出显示文章标题

※转载自http://hi.baidu.com/gtap/blog/item/6728e303e82f9a703812bb06.html

blogger默认是显示全文的,这样浏览很不方便。如果要让首页只显示文章标题,如本空间,具体效果看这里,可采用下面的方法。具体步骤(注意红色标记的地方):

登陆blogger

1、点自定义

2、布局-修改HTNL

3、选中 扩展窗口小部件模板 (重要)

4、在</head>前加入如下代码:

<style>
/* Code to show/hide post------- */
<b:if cond='data:blog.pageType == &quot;item&quot;'>
span.fullpost {display:inline;}
<b:else/>
span.fullpost {display:none;}
</b:if>
/* End of code to show/hide post ------ */
</style>

4、将<data:post.body/> 替换成 [李晶注:非第3个步骤的代码部分,要找出这行代码,推荐将全部代码复制粘贴到自带的记事本,利用发其搜索功能进行搜索,然后替换]

<b:if cond='data:blog.pageType == "item"'>
<data:post.body/> <br/>
</b:if>

  1. gravatar

    # by 李晶 - 2009年4月11日 下午11:22

    Google cooperation platform http://sites.google.com/site/xyjswf123/Home

    留有模板备份。
    可做演示。

笔者非专业IT人员,仅仅是业余IT爱好者;

本博客转载皆注明出处,各位如果想转载也请注明出处;

有其他任何的问题,请联系此电邮xyjswf@gmail.com。

I'm not a professional IT staff,only an amateur enthusiasts;

Reproduced in this blog are marked with the source, that if you want to reprint please indicate the source;

Have any other question,please relate to this email xyjswf@gmail.com.