Show Labels on Blogger Homepage with Simple Fix

Preface

I want to encourage visitors to jump to more blog posts.
On the single post page, I placed the labels below the article title.
I want to achieve a similar effect on the homepage as well.

Analysis

Open Blogger backend - Theme - Edit HTML
Jump to the Blog1 section.
Reading the HTML, I found that this is where the labels are displayed
and there is logic to determine whether it's a post page.
We modified it to
<b:includable id='postLabels'>
<b:if cond='data:widget.type == "Blog"'>
  <b:include name='super.postLabels'/>
</b:if>
</b:includable>

You can notice that data:view.isSingleItem and  was removed.

Result

It worked.
Comments