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. 進一步了解
{% comment %}
Prevents an expression from being rendered or output. Any text inside
comment
tags won't be output, and any Liquid code will be parsed, but not executed. 進一步了解