mirror of
https://github.com/Decentralized-ID/decentralized-id.github.io.git
synced 2025-08-03 20:04:23 -04:00
add authors snippet
This commit is contained in:
parent
fd735037ea
commit
45d238e58d
4 changed files with 29 additions and 1 deletions
19
_includes/authors-list.html
Normal file
19
_includes/authors-list.html
Normal file
|
@ -0,0 +1,19 @@
|
|||
<p class="page__taxonomy">
|
||||
<strong><i class="fas fa-fw fa-users" aria-hidden="true"></i> Authors:</strong>
|
||||
{% assign authorCount = page.authors | size %}
|
||||
{% if authorCount == 0 %}
|
||||
No author
|
||||
{% elsif authorCount == 1 %}
|
||||
{{ page.authors | first }}
|
||||
{% else %}
|
||||
{% for author in page.authors %}
|
||||
{% if forloop.first %}
|
||||
<a href="{{ author.url }}" rel="author">{{ author }}</a>
|
||||
{% elsif forloop.last %}
|
||||
and <a href="{{ author.url }}" rel="author">{{ author }}</a>
|
||||
{% else %}
|
||||
, <a href="{{ author.url }}" rel="author">{{ author }}</a>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</p>
|
Loading…
Add table
Add a link
Reference in a new issue