1
+ <nav class =" main" >
2
+ <ol class =" organization-links" >
3
+ <!-- Hard-coded, specific top-level menu items -->
4
+ {% if package .github != null %}
5
+ <a href =" {{ package.github.url }}" target =" _blank" role =" button" class =" btn" ><span class =" fa fa-brands fa-github" ></span >  ;  ; GitHub</a >
6
+ {% endif %}
7
+
8
+ {% if package .discord != null %}
9
+ <a href =" {{ package.discord }}" target =" _blank" role =" button" class =" btn" ><span class =" fa fa-brands fa-discord" ></span >  ;  ; Discord</a >
10
+ {% endif %}
11
+
12
+ {% if package .sponsorship != null %}
13
+ <a href =" {{ package.sponsorship }}" target =" _blank" role =" button" class =" btn" ><span class =" fa fa-dollar-sign" ></span >  ;  ; Sponsor</a >
14
+ {% endif %}
15
+ </ol >
16
+
17
+ <div class =" organization-nav-divider" >  ; </div >
18
+
19
+ {% if navigation != null %}
20
+ <ol >
21
+ {% for item in navigation .items %}
22
+ {% if item .tag == null %}
23
+ <!-- Top-level menu item -->
24
+ <li ><a href =" {{ item.url }}" >{{ item.title }}</a ></li >
25
+ {% else %}
26
+ <!-- Group of menu items -->
27
+ <div class =" link-group" >
28
+ <span class =" title" >{{ item.title }}</span >
29
+ <ol >
30
+ {% for page in pages .byTag (item .tag , sortBy =item .sortBy ) %}
31
+ <li ><a href =" {{ page.data.url }}" >{{ page.data.title }}</a ></li >
32
+ {% endfor %}
33
+ </ol >
34
+ </div >
35
+ {% endif %}
36
+ {% endfor %}
37
+ </ol >
38
+
39
+ {% if navigation .show_contributors %}
40
+ {% set contributors = github [package .github .organization ][package .github .name ] %}
41
+ <div class =" contributors" >
42
+ <span class =" title" >Contributors <span class =" count" >({{ contributors | length }})</span ></span >
43
+ <ol >
44
+ {% for contributor in (contributors |take (4)) %}
45
+ <li class =" contributor" >
46
+ <!-- Note: We show the contributor photo as a background image because -->
47
+ <!-- displaying it as an <img> results in a few extra pixels above -->
48
+ <!-- the image that we couldn't get rid of -->
49
+ <a href =" {{ contributor.userUrl }}" target =" _blank" title =" {{ contributor.userId }}" style =" background-image : url (' {{ contributor.avatarUrl }}' );" >
50
+ </a >
51
+ </li >
52
+ {% endfor %}
53
+
54
+ {% if contributors |length > 4 %}
55
+ <li class =" remaining-count" >
56
+ <div class =" bubble" >
57
+ <span class =" count" >+{{ contributors|length - 4 }}</span >
58
+ </div >
59
+ </li >
60
+ {% endif %}
61
+ </ol >
62
+ </div >
63
+ {% endif %}
64
+
65
+ {% endif %}
66
+ </nav >
0 commit comments