Article

From Shopify Wiki

Jump to: navigation, search

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.

Personal tools