{% liquid assign share_url = shop.url | append: article.url assign share_url_encoded = share_url | url_encode assign share_title = article.title | url_encode assign published = article.published_at | date: '%B %d, %Y' assign share_image = '' if article.image != blank assign share_image = article.image | image_url: width: 1200 unless share_image contains 'https:' assign share_image = share_image | prepend: 'https:' endunless assign share_image = share_image | url_encode endif %}
{% if article.image != blank %}
{{ article.image | image_url: width: 2000 | image_tag: loading: 'eager', widths: '600, 900, 1200, 1600, 2000', sizes: '(max-width: 1200px) 100vw, 1170px', alt: article.image.alt | default: article.title, class: 'h-auto w-full bg-[#f3f3f3]' }}
{% endif %}

{{ article.title | escape }}

{{ article.content }}
{% if blog.comments_enabled? %}

{{ 'blog.article_comments' | t }}

{% paginate article.comments by 10 %}
{% for comment in article.comments %}

{{ comment.author | escape }}

{{ comment.created_at | date: '%B %d, %Y' }}

{{ comment.content }}
{% endfor %}
{% if paginate.pages > 1 %}
{{ paginate | default_pagination: anchor: 'comments' }}
{% endif %} {% endpaginate %} {% form 'new_comment', article %}

{{ 'blog.comment_form_title' | t }}

{% if form.posted_successfully? %}

{{ 'blog.comment_success' | t }}

{% endif %} {{ form.errors | default_errors }}
{% endform %}
{% endif %} {% if section.settings.show_share %}
{{ 'blog.share' | t }} Facebook X {% if share_image != blank %} Pinterest {% endif %} WhatsApp
{% endif %}
{% if blog.previous_article or blog.next_article %} {% endif %}
{% if section.settings.show_related and blog.articles.size > 1 %}
{{ 'blog.view_all' | t }}
{% for related in blog.articles limit: 3 %} {% render 'blog-card', article: related, heading_tag: 'h3' %} {% endfor %}
{% endif %}
{% javascript %} document.querySelectorAll('[data-copy-link]').forEach((button) => { if (button.getAttribute('data-copy-bound') === 'true') return; button.setAttribute('data-copy-bound', 'true'); button.addEventListener('click', () => { const url = button.getAttribute('data-url'); const label = button.querySelector('[data-copy-label]'); if (!url || !navigator.clipboard || !label) return; navigator.clipboard.writeText(url).then(() => { const original = label.textContent; label.textContent = button.getAttribute('data-copied') || original; window.setTimeout(() => { label.textContent = original; }, 2000); }); }); }); {% endjavascript %} {% schema %} { "name": "t:general.article", "settings": [ { "type": "checkbox", "id": "show_share", "label": "t:blog_section.show_share", "default": true }, { "type": "checkbox", "id": "show_related", "label": "t:blog_section.show_related", "default": true } ] } {% endschema %}