--- --- {% assign terms = "" | split : "|" %} {% for annotation in site.data.annotations %} {% if annotation.tags contains "+glossary" %} {% assign term = "XXX" %} {% for selector in annotation.target[0].selector %} {% if selector.type == "TextQuoteSelector" %} {% assign term = selector.exact | downcase %} {% endif %} {% endfor %} {% assign terms = terms | push: term %} {% endif %} {% endfor %}