Files
liquid/_posts/objects/comment.md
2014-07-23 11:17:11 -04:00

955 B

layout, title, nav
layout title nav
default comment
group
Liquid Variables

comment

The comment object has the following attributes:

{% table_of_contents %}

{% anchor_link "comment.id", "comment-id" %}

Returns the id (unique identifier) of the comment.

{% anchor_link "comment.author", "comment-author" %}

Returns the author of the comment.

{% anchor_link "comment.email", "comment-email" %}

Returns the e-mail address of the comment's author.

{% anchor_link "comment.content", "comment-content" %}

Returns the content of the comment.

{% anchor_link "comment.status", "comment-status" %}

Returns the status of the comment. The possible values are:

  • unapproved
  • published
  • removed
  • spam

{% anchor_link "comment.url", "comment-url" %}

Returns the URL of the article with comment.id appended to it. This is so the page will automatically scroll to the comment.