Blogger's Index page style



In the article Find out about Blogger site styles, I mentioned in general about Blogger site styles. In this article, I will go into a separate introduction to Index - the most diverse type of Blogger page.


index


The Index page type has a conditional statement <b:if cond='data:blog.pageType == "index"'>.


The Index page style is divided into 3 sub-page types: All posts , Label , and Search .


All posts:

The conditional statement is <b:if cond='data:blog.pageName == ""'>or <b:if cond='data:blog.title == data:blog.pageTitle'>.


In the All posts page style is divided into two types of subpages: Home and Older posts .

Home:

The conditional statement is <b:if cond='data:blog.url == data:blog.homepageUrl'>.

Older posts:

The conditional statement is <b:if cond='data:blog.pageName == ""'><b:if cond='data:blog.url != data:blog.homepageUrl'>.

Label:

The conditional statement is <b:if cond='data:blog.searchLabel'>.

Search:

The conditional statement is <b:if cond='data:blog.searchQuery'>.


Knowing the styles and conditions of each page style will help us flexibility in adding or removing features, tasks ... of the elements in the blog.

OpenCloseComment
Cancel