Blogger Page Type list and its descriptions

BloggerXMLThere are four main types of page which we can differentiate in blogger XML. Below are the list and the XML code snippet to differentiate them.

1. Archive

Archive page type refers to the pages added by Blog Archive Widget, it normally has “_archive.html” ending in its URL.

XML Archive Page Type
  1. <b:if cond='data:blog.pageType == &quot;archive&quot;'>
  2.     <title>
  3.         Posts Archive | <data:blog.title/>
  4.     </title>
  5. </b:if>

 

 

2. Index

Index page type refers to pages like homepage and search result page. Page with a list of posts are normally an Index page.

XML Index Page Type
  1. <b:if cond='data:blog.pageType == &quot;index&quot;'>
  2.  
  3. </b:if>

 

 

3. Item

Item page refers to our blog post – content created using blog post button.

XML Item Page Type
  1. <b:if cond='data:blog.pageType == &quot;item&quot;'>
  2.     <title>
  3.         <data:blog.pageName/> | <data:blog.title/>
  4.     </title>
  5. </b:if>

 

4. Static Page

Static Page refers to our blog page – content created using page post button.

XML Item Page Type
  1. <b:if cond='data:blog.pageType == &quot;static_page&quot;'>
  2.     <title>
  3.         <data:blog.pageName/> | <data:blog.title/>
  4.     </title>
  5. </b:if>

 

With the blogger if condition, we can use the code snippets above to insert custom title tag for our blogspot. Thanks. Happy blogging.