- (Boolean) resource.targeted?

Determines if the resource is eligible for inclusion in the current target based on the front matter data target and exclude fields.

  • If frontmatter:target is used, the target or feature appears in the frontmatter, and
  • If frontmatter:exclude is used, the target or enabled feature does NOT appear in the frontmatter

In general you won’t use this resource method because resources will already be excluded before you have a chance to check them, and so any leftover resources will always return true for this method.

Returns:

  • (Boolean)

    Returns a value indicating whether or not this resource belongs in the current target.

- (Array) resource.valid_features

Returns an array of valid features for a resource based on the current target, i.e., features that are true for the current target.

Returns:

  • (Array)

    Returns an array of features.