Article
From Shopify Wiki
The liquid variable _article_ has the following attributes:
Contents |
article.id
Returns the id of this article.
article.title
Returns the title of this article.
article.author
Returns the name of the author of this article.
article.content
Returns this article's content (the actual article).
article.created_at
Returns the date/time of when this article was created.
Example usage by using a date filter
{{ article.created_at | date: "%Y %h" }}
article.url
Relative url where the blog can be found. Will append #article-<id> as anchor so that the page should automatically scroll to the corresponding article.
article.comments
Returns all published comments for this article if comments are enabled for the blog that this article belongs to. Otherwise, returns an empty array.
article.comments_count
Returns the number of published comments for this article.
article.comment_post_url
Relative url where comments are listed for this article.
article.comments_enabled?
Returns true if comments are enabled for the blog that this article belongs to, otherwise returns false.
article.moderated?
Returns true if the blog that this article belongs to is moderated, otherwise returns false.
