Skip to Content

Blog

The blog object represents a blog in the store, providing access to articles and recent updates.

Usage Example

{%- comment -%} List all articles in the blog with title, summary, and link {%- endcomment -%} <ul> {% for article in blog.articles %} <li> <a href="{{ article.handle | link }}">{{ article.title }}</a><br> <small>{{ article.summary }}</small> <br> <span>By {{ article.author }} on {{ article.created_at | date: '%Y-%m-%d' }}</span> </li> {% endfor %} </ul> {%- comment -%} Show the 3 most recent articles {%- endcomment -%} <ul> {% for article in blog.recent limit: 3 %} <li>{{ article.title }}</li> {% endfor %} </ul>

Properties

articles

Returns all articles posted to this blog.

last_updated

Returns recently updated articles.

recent

Returns recently published articles.

Last updated on