blogger首页输出显示文章标题
Posted by unknow in 博客技巧 on 2009年4月11日
※转载自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 == "item"'>
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>
This entry was posted on 2009年4月11日 at 下午11:14 and is filed under 博客技巧. You can follow any responses to this entry through the RSS 2.0. You can leave a response.
# by 李晶 - 2009年4月11日 下午11:22
Google cooperation platform http://sites.google.com/site/xyjswf123/Home
留有模板备份。
可做演示。