Wednesday, May 21, 2014

How to list only post title on label pages

To make blogger lightweight, here are steps to list only post titles on label pages.
1. Template => Backup template in case of any failure.
2. Template => Edit HTML
3. Find below line:
<b:include data='post' name='post'/>
4. Replace above line as below:
<!--Label and archive page title only hack-->
<b:if cond='data:blog.searchLabel'>
<h3 class='title-only'><a expr:href='data:post.url'><data:post.title/></a></h3> 
<b:else/> 
<b:if cond='data:blog.pageType == "archive"'> 
<h3 class='title-only'><a expr:href='data:post.url'><data:post.title/></a></h3> 
<b:else/> 
<b:include data='post' name='post'/> 
</b:if> 
</b:if>
5. Save template
6. Now it looks like:

No comments:

Post a Comment

Popular Posts