Angular meta tag information does not show in google

笑着哭i 提交于 2019-12-02 14:40:59

问题


I have angular base application yuppi.com.ua and I am using meta directive to bind content description for all pages using following code:

 <meta ng-if="meta.description != undefined" name="description" 
       content="{{meta.description}}" />

When I inspect code I see that generated HTML contains exect what I need:

 <meta class="ng-scope" content="Yuppi - самая большая в Украине доска бесплатных объявлений" 
       name="description" ng-if="meta.description == undefined"/>

But when I search my site in Google, I see some text from footer but there should content description from . is anybody know what is wrong


回答1:


Google will choose your search results snippets from the following places (not necessarily in this order):

  1. The page's Meta Description tag
  2. The page's Open Directory Project (ODP) Listing
  3. Page content relevant to the search query

This means that just because you have a meta description tag doesn't mean Google is going to use it.



来源:https://stackoverflow.com/questions/27450219/angular-meta-tag-information-does-not-show-in-google

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!