has_tag_code
Checks if a resource has a tag code.
Example
1
{{ post | has_tag_code: "featured" }} => true or false
Input
| Type | Parameter | Description | Required |
|---|---|---|---|
| mixed | resource | The resource to check. Comes before the | sign. | Required |
| string | tagCode | The tag code to check for |
Output
| Type | Description |
|---|---|
| bool | True if the resource has the tag, false otherwise |