forUrl()
Filter list of Webmentions by a given URL and webmention type (wm-property
)
Params:
-
mentions {object}
Webmentions object, with list of
children
webmentions (see/content/_data/webmentions.json
) -
url {url}
Absolute URL to filter webmentions by
-
allow {array} = ['mention-of', 'in-reply-to']
Containing string webmention types to filter by (see https://github.com/aaronpk/webmention.io#find-links-of-a-specific-type-to-a-specific-page)
Example:
{% set mentions = webmentions | forUrl(abs_url, ['mention-of']) %}