How to use this simple tip and make your blog have more visibility.
Last week we discussed how to prevent archived pages from being indexed by crawlers. On this post we will discuss another nice improvement that we can add to our site: how to customize the tile of your page if you're using Blogger.
Changing Theme Settings
In order to do that, we will have to edit the html for our blog. As mentioned in the previous post, to edit our html, inside Blogger, we click Theme -> customize button:Once the html opens, just at the beginning we can find the <tilte> tag. I replaced mine by:
Modified Template
After making this change, this is the expected logic:- if the page is an archive page (myblog/2018/05), show the blog title and add a noindex to the page so it won't show up in search results
- else if the landing page, only show blog title
- if it's a post page, then show the post title.
And this is my final source:
<b:if cond='data:blog.pageType == "archive"'>
<meta content='NOINDEX' name='ROBOTS'/>
<title><data:blog.title/></title>
<b:elseif cond='data:blog.pageType == "index"'/>
<title><data:blog.title/></title>
<b:else/>
<title><data:blog.pageName/></title>
</b:if>
Conclusion
There are many customizations that we can done to our pages. For more information check Blogger Help. Links specific to this post are referenced below.See Also
For more posts like this, please click here.
References
Blogger Help - Widget Tags for LayoutsBlogger Help - Layouts Data Tags