Skip to content
Snippets Groups Projects
Select Git revision
  • d1f5b794ad0ce18cb4147af1c3cf1e5af0a8d0c2
  • master default
  • patch-1
3 results

system_chip.html

Blame
  • Forked from KWARC / kwarc.info / www
    Source project has a limited visibility.
    system_chip.html 613 B
    {% 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 %}