Blog.liquid

From Shopify Wiki

Jump to: navigation, search

Overview

This template file is used for Blogs. Blogs (web diaries) are a collection of articles. Each blog has its own feed (RSS and/or Atom) that visitors can subscribe to.

You will want to iterate through all the articles of a blog to show their content:

{% for article in blog.articles  %}
   ...do things with article, e.g. render its content with
   {{ article.content }}
{% endfor %}

Variables

In blog.liquid you have access to the following variables:


* [[blog]] - The current blog.
* [[shop]]
* [[cart]]
* [[collections]]
* [[linklists]]
* [[pages]]

Personal tools