【发布时间】:2018-10-25 08:35:10
【问题描述】:
当我们在 google 上按公司名称搜索时,它会显示我们的网站名称,但不提供任何信息。
然后我尝试通过编辑 robots.txt 文件来解决此问题。
User-agent: *
Disallow:
Sitemap: {{ site.url }}/sitemap.xml
还有其他方法可以解决这个问题吗? 如何获取google搜索的信息?
【问题讨论】:
标签: robots.txt
当我们在 google 上按公司名称搜索时,它会显示我们的网站名称,但不提供任何信息。
然后我尝试通过编辑 robots.txt 文件来解决此问题。
User-agent: *
Disallow:
Sitemap: {{ site.url }}/sitemap.xml
还有其他方法可以解决这个问题吗? 如何获取google搜索的信息?
【问题讨论】:
标签: robots.txt
将元数据添加到您的 HTML 页面。
<head>
<meta name="description" content="A description of the page" />
...some other stuff
<head/>
<body>
the content of your web site
<body/>
【讨论】: