如何更改Google显示的我用Jekyll制作的博客的标题
我有一个用Jekyll写的博客,在Github上托管。当我在谷歌搜索我博客的任何帖子时,谷歌会将标题显示为:[帖子名称]-[用户名] 我想看到如下内容:[帖子名称] 我尝试更改head.html的标题:如何更改Google显示的我用Jekyll制作的博客的标题,jekyll,google-search,github-pages,Jekyll,Google Search,Github Pages,我有一个用Jekyll写的博客,在Github上托管。当我在谷歌搜索我博客的任何帖子时,谷歌会将标题显示为:[帖子名称]-[用户名] 我想看到如下内容:[帖子名称] 我尝试更改head.html的标题: <title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title> {%if page.title%}{{page.title}}{%else%}{{site
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
{%if page.title%}{{page.title}}{%else%}{{site.title}}{%endif%}
到
{{page.title}
但仍将标题显示为:[帖子名称]-[用户名]
它可能会更改Google通过jekyll配置向我显示的标题???存储库url可能会有所帮助。一旦你重建了博客,你需要等待Google重新索引你的站点,以便Google显示更改。存储库url可能会有所帮助。一旦你重建了博客,你需要等待Google重新索引你的站点谷歌可以显示这些变化。
<title>{{ page.title }}</title>