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
name
Returns the blog name.
articles
Get all articles posted to this blog
recent
Get recently published articles.
last_updated
Get recently updated articles.
comments_are_enabled
Returns true if commenting is enabled for this blog.
comments_require_account
Returns true if commenting requires customer account.
comments_require_approval
Returns true if commenting is moderated for this blog.