MyCommonIncludable

BlogPost

Conditional Tag Template Blogger Blogspot

Index page, homepage, search page

<b:if cond='data:blog.pageType == "index"'>
    <!-- .....index page..... --> 
<b:else/>
    <b:if cond='data:blog.pageType != "index"'>
        <!-- .....other than index page..... --> 
    </b:if>
</b:if>

Item page, a post page

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

Static page, for the static page 

http://googleblog.blogspot.com/p/static.html
<b:if cond='data:blog.pageType == "static_page"'>

Archive page, for archive page page 

http://googleblog.blogspot.com/2013_03_01_archive.html
<b:if cond='data:blog.pageType == "archive"'>

Home page, your home page

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

Specific URL, a specific url

<b:if cond='data:blog.pageType == "PUT YOUR URL HERE"'>

Post and static page, post and static

<b:if cond='data:blog.pageType == "data:post.url"'>

The first post, not a page but for custom the column of the latest post

<b:if cond='data:blog.pageType == "data:post.isFirstPost"'>

Error or 404 page, error or 404 page

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

Mobile page, not a page but for mobile conditional tag, if CSS put .mobile .class

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

Search label page, search label page or label page 

http://googleblog.blogspot.com/search/label
<b:if cond='data:blog.pageType == "data:blog.searchLabel"'>

Search with query, search label page or label page 

http://googleblog.blogspot.com/search?q=
<b:if cond='data:blog.pageType == "data:blog.searchQuery"'>

Search with query with specific query, search page with keyword 

http://googleblog.blogspot.com/search?q=css
<b:if cond='data:blog.searchQuery == &quot;The search keyword&quot;'>

Search label with specific label, search page with keyword like: 

http://googleblog.blogspot.com/search/label/NAME OF LABEL
<b:if cond='data:blog.searchLabel == &quot;NAME OF LABEL&quot;'>

Author in the posts

<b:if cond='data:post.author == "John Doe"'>

Comments