According to the Liquid Template Examples page, it's possible to display recent supporters to my nation using the following snippet:
{% for signup in site.recent_supporters_with_pictures %}
{{ signup.profile_image }}
{% endfor %}
This displays all recent supporters, but I want to exclude certain supporters from appearing in this list. Is that possible?
Official response from Tianhe Yang
Yes, it's possible to filter our certain supporters using signup tags.
For example, this modified snippet will exclude supporters with the tag "excludetag":
{% for signup in site.recent_supporters_with_pictures %}
{% unless signup.tags contains "excludetag" %}
{{ signup.profile_image }}
{% endunless %}
{% endfor %}
Share this post
Showing 4 reactions
Sign in with