Skip to content

Instantly share code, notes, and snippets.

@HubSpotHanevold
Created January 30, 2023 16:36
Show Gist options
  • Save HubSpotHanevold/d227dd78630a106a035c8120ebadb5f2 to your computer and use it in GitHub Desktop.
Save HubSpotHanevold/d227dd78630a106a035c8120ebadb5f2 to your computer and use it in GitHub Desktop.
A way to omit certain blogs from filtered lists via HubL array
{% set used_ids = [1, 2, 3, 5, 6] %}
{% set new_ids = [1, 2, 4, 5, 7, 8] %}
{% set ids_to_use = new_ids|difference(used_ids) %}
{% for id in ids_to_use %}
{{id}}
{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment