{% comment %} This page creates a single 'chip' for linking to a system. It expects the name of the system as the 'system' variable {% endcomment %} {% capture surl %}/systems/{{include.system}}/{% endcapture %} {% assign sp = site.pages | where: "url", surl | first %} {% if sp %} <a href="{{ site.baseurl }}{{surl}}"> <div class="chip"> {% if sp.logo %} <img src="{{ site.baseurl }}/{{sp.logo}}"/> {% endif %} {{sp.shorttitle}} </div> </a> {% else %} <div class="chip"> {{include.system}} </div> {% endif %}