gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/website/_includes/byline.html (about)

     1  By
     2  {% assign last_pos=include.authors.size | minus: 1 %}
     3  {% assign and_pos=include.authors.size | minus: 2 %}
     4  {% for i in (0..last_pos) %}
     5    {% assign author_id=include.authors[i] %}
     6    {% assign author=site.authors[author_id] %}
     7    {% if author %}
     8      <a href="{% if author.url %}{{ author.url }}{% else %}mailto:{{ author.email }}{% endif %}">{{ author.name }}</a>
     9    {% else %}
    10      {{ author_id }}
    11    {% endif %}
    12    {% if i == and_pos %}
    13      and
    14    {% elsif i < and_pos %}
    15      ,
    16    {% endif %}
    17  {% endfor %}
    18  on <span class="text-muted">{{ include.date | date_to_long_string }}</span>