Make use of IF ELSE in Blogger Blog for adsense and Dynamic meta tags

If Else type Conditional programing can be done by using <b:if cond=' '>....</b:if> tag. To Try this just log-in to your blogger account and move DashBoard > Layout > Edit HTML and check the “Expand Widget Templates” Option.

  1. For different Meta tags for different pages
<b:if cond='data:blog.url == "http://yourblog.com/2008/06/yourpost.html"'>
<meta content='xyz,pqr' name='keywords'/>
<meta content='Your Description' name='description'/>
...............
</b:if>

2. For displaying Adsense only in single page view

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

<!-- yor adsense code here -->

</b:if>


3. Your home page will only feature the actual title of your blog, whereas
post pages will feature your blog title, plus the title of your blog post.
To Optimize your blog for Search Engines you need to modify it so that
the past pages have titles of your blog post only. To get this done
look for <title><data:blog.pageTitle/></title> and
replace it with the following code

<b:if cond='data:blog.pageType == "index"'>
<title><data:blog.title/></title>
<b:else/>
<title><data:blog.pageName/></title>
</b:if>

site visitor