Blog.liquid

From Spiffy Stores Knowledge Base

Revision as of 18:36, 16 September 2008 by Admin (talk | contribs) (New page: This template renders a blog and its articles. Blogs are a collection of articles. Each blog can have its own feed (RSS and/or Atom) that visitors can subscribe to. You will want to iter...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This template renders a blog and its articles.

Blogs are a collection of articles. Each blog can have 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 being displayed.
  • handle - The handle of the blog product.

In addition, all global variables are available.