Reputation: 451
I wonder how do I add the blog description in my template specific location.
<data:blog.description />
Returns nothing. How do I get the description of the blog?
Upvotes: 1
Views: 1249
Reputation: 31
Out of the various options I've come across for description, only data:view.description
works.
As on date, these aren't working for me:
data:blog.metaDescription
data:blog.description
Upvotes: 0
Reputation: 39
Use <data:blog.metaDescription/>
instead of <data:blog.description/>
. look at this
<b:if cond='data:blog.pageType == "index"'>
<title><data:blog.pageTitle/> | <data:blog.metaDescription/></title>
<b:else/>
<title><data:blog.pageName/> | <data:blog.title/></title>
</b:if>
I hope it helps
Upvotes: 0
Reputation: 699
it may helps you..
<meta expr:content='data:blog.metaDescription' itemprop='description'/>
<b:else/>
<!-- Show if the Meta Description post Page is not active-->
<meta expr:content='data:blog.pageName + " - " your customized meta description here ."' name='description'/>
</b:if>
Upvotes: 1