Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add product meta tags
Pacu29cb234261f8b
diff --git a/templates/category/index.html b/templates/category/index.htmlindex df6b34548c..e1adf48c1e 100644--- a/templates/category/index.html+++ b/templates/category/index.html@@ -13,8 +13,7 @@{% block title %}{{ category }} — {{ block.super }}{% endblock %}{% block meta_tags %}- <meta name="title" content="{{ category }}">- <meta property="og:title" content="{{ category }}">+ <meta property="og:title" content="{{ category }} — {{ block.super }}"><meta name="og:description" content="{{ category.description }}"><meta property="og:image" content="{% static "images/logo.png" %}" />diff --git a/templates/product/details.html b/templates/product/details.htmlindex 1f16ecad88..08a36e5d38 100644--- a/templates/product/details.html+++ b/templates/product/details.html@@ -12,6 +12,23 @@{% block meta_description %}{{ product.description }}{% endblock %}+{% block meta_tags %}+ <meta property="og:title" content="{{ product }} — {{ block.super }}">+ <meta name="description" content="{{ product.description }}">++ {% with product_url=product.get_absolute_url %}+ <meta property="og:url" content="{{ product_url }}">+ <link rel="canonical" href="{{ product_url }}">+ {% endwith %}++ {% product_first_image product size="510x510" as product_image %}+ {% if product_image %}+ <meta property="og:image" content="{{ product_image }}" />+ <meta property="og:image:width" content="510">+ <meta property="og:image:height" content="510">+ {% endif %}+{% endblock meta_tags %}+{% block breadcrumb %}<ul class="breadcrumbs list-unstyled"><li><a href="/">