Posted by kukung | File under : ,
You would have noticed that, visitors, do click on the monthly archive links [like Oct 2008, Dec 2008, etc. in the Blog Archive], in your blog. But if you write a lot, like 20-30 posts in a month, then all the posts will open in the archive page and it will take a lot of time to load that page. This can be very annoying for the visitor, and he/she may simply close your blog in the frustration.
So if you want to keep your visitors happy, then you should better NOT display the content BUT only their titles in the archive results page.

For doing so, follow these steps:

Log in to Blogger
Go to Layout, and click on "Edit HTML" tab.
and mark the tick-box "Expand Widget Templates"
Now find (CTRL+F) this code in the template:
<b:include data='post' name='post'/>

And REPLACE that line with this code:
<!--ARCHIVE-TITLES-STARTS-->
<b:if cond='data:blog.homepageUrl !=
data:blog.url'>
<b:if cond='data:blog.pageType != "item"'>
<b:if cond='data:blog.pageType != "static_page"'>
<li><a expr:href='data:post.url'>
<data:post.title/></a></li><br/><br/>
<b:else/>
<b:include data='post' name='post'/>
</b:if>
<b:else/>
<b:include data='post' name='post'/>
</b:if>
<b:else/>
<b:include data='post' name='post'/>
</b:if>
<!--ARCHIVE-TITLES-STOPS-->
I have already done this hack, in this blog, here have a look at the screen shot :

0 nhận xét:

Đăng nhận xét