我希望我的网站符合
Google+ Direct Connect的资格.
所以在谷歌搜索后,我发现了this Google Support page,从那以后被编辑.
View Google Support page providing these instructions via WayBack Machine:
You can directly link your website by inserting a small snippet of
code on your website and then listing that website as your Google+
page’s primary link in the About section of the profile. For example,
if your Google+ page’s primary link is set to www.pagewebsite.com,
you can create a bidrectional link by placing the following code snippet in the<head>
tag of the site’s HTML:
<a href="https://plus.google.com/{+PageId}" rel="publisher" />
是什么赋予了?头内的锚标签?
将上述代码段放在头标中是否合法?
解决方法
我认为Google文档中有错误,这应该是< link>标签,如下所示:
<link href="https://plus.google.com/{+PageId}" rel="publisher" />
如果工作正常,您可以在https://developers.google.com/structured-data/testing-tool/测试.在您的网站中加入< link>标签,并使用此工具查看Google检测到的内容.有一个“发布商”部分,您可以看到Google是否检测到正确的信息.
我正在使用< link>在我的网站上,Google会检测到正确的值.