forked from github/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
guide-card.html
40 lines (37 loc) · 1.28 KB
/
guide-card.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{% if guide.page.authors %}
{% assign authors = guide.page.authors %}
{% else %}
{% assign authors = 'GitHub' | split: ' ' %}
{% endif %}
{% assign authorsString = authors | join: ", @" %}
<div class="col-lg-4 col-12 mb-3">
<a class="Box box-shadow-medium height-full d-block hover-shadow-large no-underline text-gray-dark p-5" href="{{ guide.href }}">
<h2>{{ guide.title }}</h2>
<p class="mt-2 mb-4 text-gray-light">{{ guide.intro }}</p>
<footer class="d-flex">
<div class="mr-1">
{% if authors.length == 1 %}
<img class="avatar avatar-2 circle mr-1" src="https://github.com/{{ authors[0] }}.png" alt="@{{ authors[0] }}" />
{% else %}
<div class="AvatarStack AvatarStack--three-plus">
<div
class="AvatarStack-body tooltipped tooltipped-se tooltipped-align-left-1"
aria-label="@{{ authorsString }}"
>
{% for author in authors %}
<img
class="avatar circle"
alt="@{{ author }}"
src="https://github.com/{{ author }}.png"
/>
{% endfor %}
</div>
</div>
{% endif %}
</div>
<div>
@{{ authorsString }}
</div>
</footer>
</a>
</div>