tangled
alpha
login
or
join now
mackuba.eu
/
sdk.blue
6
fork
atom
A curated list of libraries & SDKs for the Bluesky API and AT Protocol
6
fork
atom
overview
issues
2
pulls
pipelines
extracted project card to a partial
mackuba.eu
1 year ago
c5df1ff8
e46d1565
+40
-39
2 changed files
expand all
collapse all
unified
split
_includes
project_card.html
index.html
+28
_includes/project_card.html
···
1
1
+
{% assign info = include.project.info %}
2
2
+
3
3
+
{% assign dates = '' | split: '' %}
4
4
+
{% if info.last_release %}
5
5
+
{% assign dates = dates | push: info.last_release.published_at %}
6
6
+
{% endif %}
7
7
+
{% if info.last_tag %}
8
8
+
{% assign dates = dates | push: info.last_tag.committer_date %}
9
9
+
{% endif %}
10
10
+
{% assign last_release = dates | sort | last %}
11
11
+
12
12
+
{% if info.user_name %}
13
13
+
{% if info.user_name != info.user_login %}
14
14
+
{% assign user = '@' | append: info.user_login | append: ' (' | append: info.user_name | append: ')' %}
15
15
+
{% else %}
16
16
+
{% assign user = '@' | append: info.user_login %}
17
17
+
{% endif %}
18
18
+
{% else %}
19
19
+
{% assign user = '@' | append: info.user_login %}
20
20
+
{% endif %}
21
21
+
22
22
+
<li>
23
23
+
<a href="{{ include.project.url }}" target="_blank">{{ info.name }}</a>
24
24
+
by {{ user }} *{{ info.stars }}<br>
25
25
+
{{ info.description }}<br>
26
26
+
Last release: {{ last_release | date_to_string }} |
27
27
+
commit: {{ info.last_commit.author_date | date_to_string }} | {{ info.license | replace: "-", " " }}
28
28
+
</li>
+12
-39
index.html
···
2
2
---
3
3
4
4
{% for projects in site.data.projects %}
5
5
-
{% assign key = projects[0] %}
6
6
-
{% assign data = projects[1] %}
5
5
+
{% assign key = projects[0] %}
6
6
+
{% assign data = projects[1] %}
7
7
8
8
-
<div class="language">
9
9
-
<h2>{{ data.name }}</h2>
10
10
-
<ul>
11
11
-
{% assign repos = data.repos | sort: "info.stars", "first" | reverse %}
12
12
-
{% for repo in repos %}
13
13
-
{% assign info = repo.info %}
14
14
-
{% if info %}
8
8
+
<div class="language">
9
9
+
<h2>{{ data.name }}</h2>
10
10
+
<ul>
11
11
+
{% assign repos = data.repos | sort: "info.stars", "first" | reverse %}
15
12
16
16
-
{% assign dates = '' | split: '' %}
17
17
-
{% if info.last_release %}
18
18
-
{% assign dates = dates | push: info.last_release.published_at %}
13
13
+
{% for repo in repos %}
14
14
+
{% if repo.info %}
15
15
+
{% include project_card.html project=repo %}
19
16
{% endif %}
20
20
-
{% if info.last_tag %}
21
21
-
{% assign dates = dates | push: info.last_tag.committer_date %}
22
22
-
{% endif %}
23
23
-
{% assign last_release = dates | sort | last %}
24
24
-
25
25
-
{% if info.user_name %}
26
26
-
{% if info.user_name != info.user_login %}
27
27
-
{% assign user = '@' | append: info.user_login | append: ' (' | append: info.user_name | append: ')' %}
28
28
-
{% else %}
29
29
-
{% assign user = '@' | append: info.user_login %}
30
30
-
{% endif %}
31
31
-
{% else %}
32
32
-
{% assign user = '@' | append: info.user_login %}
33
33
-
{% endif %}
34
34
-
35
35
-
<li>
36
36
-
<a href="{{ repo.url }}" target="_blank">{{ info.name }}</a>
37
37
-
by {{ user }} *{{ info.stars }}<br>
38
38
-
{{ info.description }}<br>
39
39
-
Last release: {{ last_release | date_to_string }} |
40
40
-
commit: {{ info.last_commit.author_date | date_to_string }} | {{ info.license | replace: "-", " " }}
41
41
-
</li>
42
42
-
{% endif %}
43
43
-
{% endfor %}
44
44
-
</ul>
45
45
-
</div>
46
46
-
17
17
+
{% endfor %}
18
18
+
</ul>
19
19
+
</div>
47
20
{% endfor %}