The blog object
The blog
object contains information about a specific blog. You can access the blog
object in the blog template or through the blogs
object.
The blog
object has the following attributes:
blog.all_tags
Anchor link to section titled "blog.all_tags"Returns all tags of all articles of a blog. This includes tags of articles that are not in the current pagination view.
blog.articles
Anchor link to section titled "blog.articles"Returns an array of all articles in a blog. See this page for a list of all available attributes for article
.
blog.articles_count
Anchor link to section titled "blog.articles_count"Returns the total number of articles in a blog. This total does not include hidden articles.
blog.comments_enabled?
Anchor link to section titled "blog.comments_enabled?"Returns true
if comments are enabled, or false
if they are disabled.
blog.handle
Anchor link to section titled "blog.handle"Returns the handle of the blog.
Returns the id of the blog.
blog.metafields
Anchor link to section titled "blog.metafields"Returns the blog's metafields.
blog.moderated?
Anchor link to section titled "blog.moderated?"Returns true
if comments are moderated, or false
if they are not moderated.
blog.next_article
Anchor link to section titled "blog.next_article"Returns the next (older) article. Returns nil
if there is no next article.
blog.previous_article
Anchor link to section titled "blog.previous_article"Returns the previous (newer) article. Returns nil
if there is no next article.
Returns all tags in a blog. Similar to all_tags, but only returns tags of articles that are in the filtered view.
Returns the title of the blog.
Returns the relative URL of the blog.