Blogger-data:post.snippet替换data:blog.metaDescription为*:description [英] Blogger - data:post.snippet to replace data:blog.metaDescription for *:description
问题描述
我试图弄清楚如何在Blogger中使用data:post.snippet函数绕过设置">搜索首选项">"Meta标签">描述"或发布被用作metaDescription变量的搜索描述".
I am trying to figure out how to use the data:post.snippet function in blogger to bypass the Settings > Search preferences > Meta tags > Description or post Search Description that is being used as the variable for metaDescription.
摘录功能将是为facebook和twitter设置描述的好方法.
The snippet function would be a great way to set the description for facebook and twitter.
反正有没有将摘录作为data:blog变量?
Is there anyway to pickup the snippet as a data:blog variable?
<b:if cond='data:blog.metaDescription != ""'>
<meta expr:content='data:post.snippet' property='og:description'/>
<meta expr:content='data:blog.snippet' name='twitter:description'/>
<meta expr:content='data:blog.metaDescription' itemprop='description'/>
<meta expr:content='data:blog.metaDescription' name='description'/>
推荐答案
不幸的是,data:post.snippet
仅在<b:widget type='Blog'>...</b:widget>
部分中有效.
Unfortunately, data:post.snippet
works only in <b:widget type='Blog'>...</b:widget>
section.
这篇关于Blogger-data:post.snippet替换data:blog.metaDescription为*:description的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!