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
trueif comments are enabled for the blog. Returnsfalseif 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
trueif the blog is set to moderate comments. Returnsfalseif not.The next (older) article in the blog.
Returns
nilif there is no next article.This property can be used on the article page to output
nextlinks.The previous (newer) article in the blog.
Returns
nilif there is no previous article.This property can be used on the article page to output
previouslinks.The name of the custom template assigned to the blog.
The name doesn't include the
blog.prefix, or the file extension (.jsonor.liquid).If a custom template isn't assigned to the blog, then
nilis returned.
Example
{
"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"
}