Skip to content
Snippets Groups Projects
people_chip.html 435 B
Newer Older
  • Learn to ignore specific revisions
  • {% capture purl %}/people/{{person}}/{% endcapture %}
    {% assign pname = person %}
    {% assign pimg = "" %}
    
    {% for pp in site.pages %}
      {% if pp.url == purl %}
        {% assign pname = pp.fullname %}
        {% assign pimg = pp.pic %}
      {% endif %}
    {% endfor %}
    
    <a href="{{ site.baseurl }}{{purl}}">
      <div class="chip">
          {% if pimg != "" %}
            <img src="{{ site.baseurl }}/{{pimg}}">
          {% endif %}
          {{pname}}
      </div>
    </a>