Monday, June 11, 2012

Show only post titles in any desired page

Here is an hack how to show post title in any desired page of an blog. 

Find :

<b:include data='post' name='post'/>

Replace with :

<b:if cond='data:blog.homepageUrl
!= data:blog.url'>

<b:if cond='data:blog.pageType != "item"'>

<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>




to show only post title in blogger home page too.

Find :

<p><data:post.body/></p>


Replace with :

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


Post titles only in archieve pages :


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