Created
January 30, 2023 16:36
-
-
Save HubSpotHanevold/d227dd78630a106a035c8120ebadb5f2 to your computer and use it in GitHub Desktop.
A way to omit certain blogs from filtered lists via HubL array
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% 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