article template renders the article page, which contains the full content of the article, as well as an optional comments section for customers. This template is used for items like individual posts in a blog.
article template is located in the
templates directory of the theme:
You should include the following in your
article template or a section inside of the template:
The article objectAnchor link to section titled "The article object"
You can access the Liquid
article object to display the article details.
The comment formAnchor link to section titled "The comment form"
The comment form can be added with the Liquid
form tag and accompanying
'new_comment', article parameter. Within the form tag block, you need to include the following:
When working with the
article template, you should familiarize yourself with paginating article comments.
Paginate article commentsAnchor link to section titled "Paginate article comments"
Article comments can be accessed through the article object, and have a limit of 50 per page. For this reason, you should paginate article comments to ensure that they’re all accessible: