# Blog

The Liquid `blog` object and its properties, with examples.

The `blog` object has the following attributes:

## blog.all_tags

Returns all tags of all articles of a blog, including tags of articles that are not in the current pagination view.

```liquid
{% for tag in blog.all_tags %}
  {{ tag }}
{% endfor %}
```

```text
News, Music, Sale, Tips and Tricks
```

## blog.articles

Returns an array of all articles in a blog. See the [article object](https://developer.versacommerce.de/articles/liquid-objects-article) for all attributes of `article`.

```liquid
{% for article in blog.articles %}
    <h2>{{ article.title }}</h2>
{% endfor %}
```

```html
<h2>Hello World!</h2>
<h2>This is my second post.</h2>
<h2>Third time's a charm!</h2>
```

## blog.articles_count

Returns the total number of articles in a blog. Hidden articles are not counted.

## blog.comments_enabled?

Returns `true` if comments are enabled, `false` if they are disabled.

## blog.handle

Returns the [handle](https://developer.versacommerce.de/articles/liquid-basics-handle) of the blog.

## blog.id

Returns the ID of the blog.

## blog.moderated?

Returns `true` if comments are moderated, `false` if they are not.

## blog.next_article

Returns the next (older) [article](https://developer.versacommerce.de/articles/liquid-objects-article). Returns `nil` if there is no next article.

## blog.previous_article

Returns the previous (newer) [article](https://developer.versacommerce.de/articles/liquid-objects-article). Returns `nil` if there is no previous article.

## blog.tags

Returns all tags in a blog. Like [all_tags](#blog-alltags), but only returns tags of articles in the filtered view.

## blog.title

Returns the title of the blog.

## blog.url

Returns the relative URL of the blog.


## More properties

VersaCommerce also provides these properties on the `blog` object:

| Properties | Returns |
|---|---|
| `metafields`, `image`, `template_suffix`, `full_url`, `option_01`, `option_02`, `option_03`, `content_title_tag`, `content_meta_description`, `content_meta_keywords` | Blog image, custom options and metadata |
