Ubuntu / Linux news and application reviews.

As you have probably noticed, Blogger displays the current date only once in your posts / on top of them (on the main page), if you publish more posts on the same day.

Here is how to display the current date on top of each Blogger (blogspot.com) post, even if the posts are published on the same date:

You will need to edit the Layout. To do so, go to your Blogger Dashboard > Layout > Edit HTML, and make sure you check "Expand Widget Templates". Then, search for code that looks like this (it doesn't have to be exactly like it):

<div class='blog-posts'>
<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'/>

delete the code in red from the section above, and replace it with the green lines from below:

<div class='blog-posts'>
<b:loop values='data:posts' var='post'>
<div class='date-header'>
<data:post.timestamp/>
</div>
<b:include data='post' name='post'/>
<b:if cond='data:blog.pageType == "item"'>

Then, you can tweak the date to your linking, by going to your Blogger Dashboard > Settings > Formatting and look for Timestamp Format and select the date format you desire:



Credits to beta-templatestesting.