Article.liquid

From Shopify Wiki

Jump to: navigation, search

Overview

This template file is used for Articles.

Note: article.liquid is currently not enabled for most sites. The default themes will be updated to include this template.

If you are not using a default theme and wish to enable comments for your blog, an article.liquid file must be included as part of your theme.

You will want to iterate through all the comments of an article to show their content:

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

Variables

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

Personal tools