Returns the content of an article. 進一步了解
The article
object.
進一步了解
Returns the published comments of an article. Returns an empty array if comments are disabled. 進一步了解
Returns the number of published comments for an article. 進一步了解
Returns true
if comments are enabled. Returns false
if comments are disabled.
進一步了解
Returns the relative URL where POST requests are sent to when creating new comments. 進一步了解
Returns the timestamp of when an article was created. Use the date
filter to format the timestamp.
進一步了解
{{ article.created_at | date: "%a, %b %d, %y" }}
Fri, Sep 16, 11
Returns the excerpt of an article. 進一步了解
Returns article.excerpt
of the article if it exists. Returns article.content
if an excerpt does not exist for the article.
進一步了解
Returns the handle of the article. 進一步了解
Returns the id of an article. 進一步了解
Returns the article image. Use the img_url
filter to link it to the image file on the Shopify CDN. Check for the presence of the image first.
進一步了解
{% if article.image %}
{{ article | img_url: 'medium' }}
{% endif %}
Returns the article image's alt
text.
進一步了解
Returns the relative URL to the article image. 進一步了解
{{ article.image.src | img_url: 'medium' }}
Returns true
if the blog that the article belongs to is set to moderate comments. Returns false
if the blog is not moderated.
進一步了解
Returns the date/time when an article was published. Use the date
filter to format the timestamp.
進一步了解
Returns returns a timestamp for when a blog article was updated. The date
filter can be applied to format the timestamp.
進一步了解
Returns the relative URL of the article. 進一步了解
Returns an object with information about the article's author. This information can be edited in the Staff accounts options on the Account page in the Shopify admin. 進一步了解
Returns true
if the author of the article is the account owner of the shop. Returns false
if the author is not the account owner.
進一步了解
Returns the bio of the author of an article. This is entered through the Staff members options on the Account page. 進一步了解
Returns the email of the author of an article. This is entered through the Staff members options on the Account page. 進一步了解
Returns the first name of the author of an article. This is entered through the Staff members options on the Account page. 進一步了解
Returns the homepage of the author of an article. This is entered through the Staff members options on the Account page. 進一步了解
Returns the image object of the author of the article. 進一步了解
{% if article.user.image %}
{{ article.user.image | img_url: '200x200' }}
{% endif %}
//cdn.shopify.com/s/files/1/0087/0462/users/user-image_200x200.png?v=1337103726
Returns the last name of the author of an article. This is entered through the Staff members options on the Account page. 進一步了解
{% comment %}
Allows you to leave un-rendered code inside a Liquid template. Any text within the opening and closing comment blocks will not be output, and any Liquid code within will not be executed. 進一步了解