has_tag

Checks if a resource has a tag.

Example

1
{{ post | has_tag: "featured" }} => true or false

Input

Type Parameter Description Required
mixed resource The resource to check. Comes before the | sign. Required
string tagName The tag name to check for  

Output

Type Description
bool True if the resource has the tag, false otherwise