All guides

Guide

Shopify Liquid Cheat Sheet 2026

Blog, Article and Comment Objects

Available on blog and article templates, and anywhere through the global blogs object.

01

blogs['the-handle']

Access any blog by handle from any template.

{% for article in blogs['news'].articles limit: 3 %}
  {{ article.title }}
{% endfor %}
02

blog.id / blog.handle / blog.title / blog.url

Core identifiers and the blog's URL.

<a href="{{ blog.url }}">{{ blog.title }}</a>
03

blog.articles / blog.articles_count

The blog's articles, and how many there are. Paginate large blogs.

{{ blog.articles_count }} articles
04

blog.comments_enabled? / blog.moderated?

Whether comments are allowed, and whether they need approval before appearing.

{% if blog.comments_enabled? %}…{% endif %}
05

blog.next_article / blog.previous_article

On an article page, the adjacent articles — use for next/previous navigation.

{% if blog.next_article %}
  <a href="{{ blog.next_article.url }}">{{ blog.next_article.title }}</a>
{% endif %}
06

blog.all_tags / blog.tags

all_tags lists every tag used in the blog; tags lists tags on the articles currently shown.

{% for tag in blog.all_tags %}{{ tag | link_to_tag: tag }}{% endfor %}
07

article.id / article.title / article.author / article.url

Core article details.

<h1>{{ article.title }}</h1>
<p>By {{ article.author }}</p>
08

article.content / article.excerpt

The full body, and the summary entered in the Excerpt field. Use article.excerpt_or_content as a fallback.

{{ article.excerpt_or_content }}
09

article.created_at / article.published_at

Timestamps — format with the date filter.

{{ article.published_at | date: '%d %b %Y' }}
10

article.image

The article's featured image.

{% if article.image %}
  {{ article.image | image_url: width: 1200 | image_tag }}
{% endif %}
11

article.tags

The article's tags.

{{ article.tags | join: ', ' }}
12

article.comments / comments_count / comment_post_url

Published comments, their count, and the URL comment forms post to.

{{ article.comments_count }} comments
13

article.comments_enabled? / article.moderated?

Comment settings inherited from the blog.

{% if article.comments_enabled? %}{% form 'new_comment', article %}…{% endform %}{% endif %}
14

comment.id / author / email / content / status / url

Details of a single comment. status reflects moderation.

{% for comment in article.comments %}
  <p><strong>{{ comment.author }}</strong>: {{ comment.content }}</p>
{% endfor %}

Shopify experts

Let's talk ecommerce, Shopify & Shopify Plus solutions.

DROPSHIP HUBS helps ecommerce brands build, improve, and grow Shopify stores. We support new builds, migrations, ongoing development, SEO, and conversion optimisation.

Our team can help plan the right approach based on your store, goals, and current challenges.

Get in touch