Google has included a large number of pages with blogs/*/tagged/ paths, and their Meta descriptions

Lelinta
New Member
3 0 0

Google has included a large number of pages with blogs/*/tagged/ paths such as https://www.lelinta.com/blogs/tutorials/tagged/essential-shopify-apps, their Meta descriptions are duplicated, as shown in the screenshotsDingtalk_20210127170922.jpg

Some netizens suggested the following code to modify the theme.liquid file, but it does not work for me. Why? How to fix it?

{% if page_description != blank and blog.tags == blank %}

<meta name="description" content="{{ page_description | escape }}">

{% elsif blog.tags != blank and page_description == blank %}

{% for article in blog.articles %}

<meta name="description" content="{{ article.excerpt | truncate: '150' }}">

{% endfor %}

{% else %}

<meta name="description" content="{{ page_description | escape }}">

{% endif %}

Shopify partners, also have own shopify stores
0 Likes