{%- if page.early_redirect %} {%- endif %} {% if site.order_instagram %}{% endif %} {% include ios-splash.html %} {%- comment -%} ===== پیش‌نمایش لینک (واتساپ / تلگرام / گوگل) ===== عنوان : «عنوان صفحه | فروشگاه غریبی کیش» توضیح : description همان صفحه (فرانت‌متر)؛ برای محصول: متن توضیحات، و اگر خالی/نمونه بود یک جملهٔ خودکار با قیمت عکس : محصول → عکس اول خودش ؛ بقیهٔ صفحه‌ها → /assets/images/og-card.jpg {%- endcomment -%} {%- assign pv_title = site.title -%} {%- if page.title -%}{%- assign pv_title = page.title | append: ' | ' | append: site.title -%}{%- endif -%} {%- assign pv_desc = page.description | default: '' -%} {%- if pv_desc == '' and page.layout == 'product' -%} {%- assign pv_body = page.content | strip_html | strip_newlines | normalize_whitespace | strip -%} {%- assign pv_ok = false -%} {%- if pv_body.size > 30 -%}{%- assign pv_ok = true -%}{%- endif -%} {%- if pv_body contains 'توضیحات محصول را اینجا' -%}{%- assign pv_ok = false -%}{%- endif -%} {%- if pv_ok -%} {%- assign pv_desc = pv_body | truncate: 155 -%} {%- else -%} {%- capture pv_price_html -%}{%- include price.html product=page -%}{%- endcapture -%} {%- assign pv_price = pv_price_html | split: '' | first | strip_html | strip -%} {%- capture pv_desc -%}{{ page.title }} — {{ pv_price }} | سفارش در واتساپ یا تماس تلفنی، فروشگاه غریبی کیش{%- endcapture -%} {%- endif -%} {%- endif -%} {%- if pv_desc == '' -%}{%- assign pv_desc = site.description -%}{%- endif -%} {%- assign pv_img = page.images[0] -%} {%- if pv_img -%} {%- capture pv_img_rel -%}{% include img.html src=pv_img %}{%- endcapture -%} {%- assign pv_img_url = pv_img_rel | strip | prepend: site.url -%} {%- assign pv_img_w = 900 -%}{%- assign pv_img_h = 1200 -%} {%- else -%} {%- assign pv_img_url = '/assets/images/og-card.jpg' | absolute_url -%} {%- assign pv_img_w = 1200 -%}{%- assign pv_img_h = 630 -%} {%- endif -%} {{ pv_title | escape }} {%- if page.layout == 'product' %}{% include torob-meta.html %}{% endif %} {%- if page.url == '/' %} {%- endif %} {% include header.html %}
{{ content }}
{% include footer.html %} {% include mobile-tabbar.html %}