Help me correct this html code


#1

Hello, I know almost nothing about html and was hoping you guys could help me out. In the Google search result, I want the post title followed by the blog name to be displayed. Currently, its only displaying the first line of the post instead of the post title. I recently updated the code by referring somwhere but I’m not sure if its correct or not as the changes have not yet taken place on google.`

<b:if cond='data:blog.pageType == &quot;index&quot;'>
<b:if cond='data:blog.pageType == &quot;index&quot;'>
<title><data:blog.title/></title>
<b:else/>
<title><data:blog.pageName/></title>
</b:if> 
<b:else/>
<b:if cond='data:blog.pageType != &quot;error_page&quot;'>
<title><data:blog.pageName/> ~ <data:blog.title/></title> 
<b:else/>
<title>404 ~ Page Not Found!</title>
</b:if>
</b:if>'

Thanks.


#2

You can use it in such structure,…in that you have used double condition at same place…

 <title>
<b:if cond='data:blog.pageType == &quot;index&quot;'>
		<data:blog.pageTitle/>
<b:else/>
<b:if cond='data:blog.pageType != &quot;error_page&quot;'>
		<data:blog.pageName/> - <data:blog.title/>
<b:else/>
		404 | <data:blog.title/> 
</b:if>
</b:if>
</title>