简体   繁体   English

在博客上使用变量的元关键字

[英]Meta keywords with variable on blogger

i will try define meta keywords on templates blogger for each post. 我将尝试在模板Blogger上为每个帖子定义meta关键字。 I use label of post like as keywords. 我将帖子的标签用作关键字。

 <b:if cond='data:post.labels'>
      <b:loop values='data:post.labels' var='label'>
            <a expr:href='data:label.url' rel='tag'><data:label.name/></a><b:if cond='data:label.isLast != &quot;true&quot;'>,</b:if>
      </b:loop>
 </b:if>

How i can use above loop to insert below code: 我如何使用上述循环插入以下代码:

<meta content='$Variable' name='Keywords'/>

I have implemented this in past but it makes your template dirty 我以前已经实现过,但是这会使您的模板变脏

http://www.moretechtips.net/2009/03/blogger-seo-tip-use-post-labels-as-meta.html http://www.moretechtips.net/2009/03/blogger-seo-tip-use-post-labels-as-meta.html

This will add some xhtml errors to your template. 这会将一些xhtml错误添加到您的模板中。 IMHO I wouldn't care about meta keywords as Google doesn't consider them now days. 恕我直言,我不会在乎元关键字,因为Google如今不考虑它们。 They have been abused in past. 他们过去曾被虐待。

exactly meta keywords do not effect on ranking nowadays so do not play with codes. 正是meta关键字对当今的排名没有影响,因此请不要使用代码。 :D :D

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM