2008年3月31日

|Blogger 學習Note|‧|Hack|‧在標籤/搜尋頁面只列出標題 (Simplify the result of label and search)

尋找(紅字段)
<b:loop values='data:posts' var='post'>
<b:if cond='data:post.dateHeader'>
<h2 class='date-header'><data:post.dateHeader/></h2>
</b:if>
<b:include data='post' name='post'/>
<b:if cond='data:blog.pageType == "item"'>
<b:if cond='data:post.allowComments'>
<b:include data='post' name='comments'/>
</b:if>
</b:if>
</b:loop>

取代為
<b:if cond='data:blog.homepageUrl != data:blog.url'>
<b:if cond='data:blog.pageType == "index"'>
<!-- Show article title only -->
<h3 class='post-title'><a expr:href='data:post.url'><data:post.title/></a></h3>
<b:else/>
<b:include data='post' name='post'/>
</b:if>
<b:else/>
<b:include data='post' name='post'/>
</b:if>

教學&原文連結:
Abin's Tech Note : 標籤/搜尋頁面只列出標題 (Simplify the result of label and search)

0 回應: