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

project_chip.html

Blame
  • Forked from KWARC / kwarc.info / www
    738 commits behind the upstream repository.
    user avatar
    Tom Wiesing authored
    d1f5b794
    History
    project_chip.html 619 B
    {% comment %}
        This page creates a single 'chip' for linking to a project. 
        It expects the name of the project as the 'project' variable
    {% endcomment %}
    
    {% capture purl %}/projects/{{include.project}}/{% endcapture %}
    {% assign pp = site.pages | where: "url", purl | first %}
    
    {% if pp %}
        <a href="{{ site.baseurl }}{{purl}}">
            <div class="chip">
                {% if pp.logo %}
                    <img src="{{ site.baseurl }}/{{pp.logo}}"/>
                {% endif %}
                {{pp.shorttitle}}
            </div>
        </a>
    {% else %}
        <div class="chip">
            {{include.project}}
        </div>
    {% endif %}