blog
Information about a specific blog in the store.
Properties
All of the tags on the articles in the blog.
This includes tags of articles that aren't in the current pagination view.
The articles in the blog.
TipUse the paginate tag to choose how many articles to show per page, up to a limit of 50.
The total number of articles in the blog. This total doesn't include hidden articles.
Returns
true
if comments are enabled for the blog. Returnsfalse
if not.The metafields applied to the blog.
TipTo learn about how to create metafields, refer to Create and manage metafields or visit the Shopify Help Center.
Returns
true
if the blog is set to moderate comments. Returnsfalse
if not.The next (older) article in the blog.
Returns
nil
if there is no next article.This property can be used on the article page to output
next
links.The previous (newer) article in the blog.
Returns
nil
if there is no previous article.This property can be used on the article page to output
previous
links.The name of the custom template assigned to the blog.
The name doesn't include the
blog.
prefix, or the file extension (.json
or.liquid
).If a custom template isn't assigned to the blog, then
nil
is returned.
{
"all_tags": [],
"articles": [],
"articles_count": 3,
"comments_enabled?": true,
"handle": "potion-notions",
"id": 78580613185,
"metafields": {},
"moderated?": true,
"next_article": {},
"previous_article": {},
"tags": [],
"template_suffix": "",
"title": "Potion Notions",
"url": "/blogs/potion-notions"
}