【发布时间】:2019-04-28 01:17:58
【问题描述】:
所以如果你谷歌“pets go here”或“petsgohere”,你会看到我的客户网站https://www.petsgohere.com/下的站点链接有2个站点链接有重名:
《狗狗店》(https://petsgohere.com/pages/dog-store)
“猫猫店”(https://petsgohere.com/pages/cat-store)
让我感到困惑的是,我在管理区域中也没有看到重复的名称:
当我打开我的 theme.liquid 时,追踪 <title> 元素是如何呈现的:
{% capture seo_title %}
{{ page_title }}
{% if current_tags %}
{%- assign meta_tags = current_tags | join: ', ' %} – {{ 'general.meta.tags' | t: tags: meta_tags -}}
{% endif %}
{% if current_page != 1 %}
– {{ 'general.meta.page' | t: page: current_page }}
{% endif %}
{% unless page_title contains shop.name %}
– {{ shop.name }}
{% endunless %}
{% endcapture %}
<title>{{ seo_title }}</title>
有没有人知道如何解决这个问题,或者至少知道问题是什么?
任何人都可以逐段分解代码吗?
【问题讨论】:
-
我不确定,但这可能会对您有所帮助。这可能是因为您确实拥有同名的页面和集合。比如 /collections/dog-store 和 /pages/dog-store。您可以尝试在网站管理员工具中以 Google 方式获取以查看更多信息。
标签: shopify e-commerce liquid