A curated list of libraries & SDKs for the Bluesky API and AT Protocol

extracted project card to a partial

+40 -39
+28
_includes/project_card.html
··· 1 + {% assign info = include.project.info %} 2 + 3 + {% assign dates = '' | split: '' %} 4 + {% if info.last_release %} 5 + {% assign dates = dates | push: info.last_release.published_at %} 6 + {% endif %} 7 + {% if info.last_tag %} 8 + {% assign dates = dates | push: info.last_tag.committer_date %} 9 + {% endif %} 10 + {% assign last_release = dates | sort | last %} 11 + 12 + {% if info.user_name %} 13 + {% if info.user_name != info.user_login %} 14 + {% assign user = '@' | append: info.user_login | append: ' (' | append: info.user_name | append: ')' %} 15 + {% else %} 16 + {% assign user = '@' | append: info.user_login %} 17 + {% endif %} 18 + {% else %} 19 + {% assign user = '@' | append: info.user_login %} 20 + {% endif %} 21 + 22 + <li> 23 + <a href="{{ include.project.url }}" target="_blank">{{ info.name }}</a> 24 + by {{ user }} *{{ info.stars }}<br> 25 + {{ info.description }}<br> 26 + Last release: {{ last_release | date_to_string }} | 27 + commit: {{ info.last_commit.author_date | date_to_string }} | {{ info.license | replace: "-", " " }} 28 + </li>
+12 -39
index.html
··· 2 2 --- 3 3 4 4 {% for projects in site.data.projects %} 5 - {% assign key = projects[0] %} 6 - {% assign data = projects[1] %} 5 + {% assign key = projects[0] %} 6 + {% assign data = projects[1] %} 7 7 8 - <div class="language"> 9 - <h2>{{ data.name }}</h2> 10 - <ul> 11 - {% assign repos = data.repos | sort: "info.stars", "first" | reverse %} 12 - {% for repo in repos %} 13 - {% assign info = repo.info %} 14 - {% if info %} 8 + <div class="language"> 9 + <h2>{{ data.name }}</h2> 10 + <ul> 11 + {% assign repos = data.repos | sort: "info.stars", "first" | reverse %} 15 12 16 - {% assign dates = '' | split: '' %} 17 - {% if info.last_release %} 18 - {% assign dates = dates | push: info.last_release.published_at %} 13 + {% for repo in repos %} 14 + {% if repo.info %} 15 + {% include project_card.html project=repo %} 19 16 {% endif %} 20 - {% if info.last_tag %} 21 - {% assign dates = dates | push: info.last_tag.committer_date %} 22 - {% endif %} 23 - {% assign last_release = dates | sort | last %} 24 - 25 - {% if info.user_name %} 26 - {% if info.user_name != info.user_login %} 27 - {% assign user = '@' | append: info.user_login | append: ' (' | append: info.user_name | append: ')' %} 28 - {% else %} 29 - {% assign user = '@' | append: info.user_login %} 30 - {% endif %} 31 - {% else %} 32 - {% assign user = '@' | append: info.user_login %} 33 - {% endif %} 34 - 35 - <li> 36 - <a href="{{ repo.url }}" target="_blank">{{ info.name }}</a> 37 - by {{ user }} *{{ info.stars }}<br> 38 - {{ info.description }}<br> 39 - Last release: {{ last_release | date_to_string }} | 40 - commit: {{ info.last_commit.author_date | date_to_string }} | {{ info.license | replace: "-", " " }} 41 - </li> 42 - {% endif %} 43 - {% endfor %} 44 - </ul> 45 - </div> 46 - 17 + {% endfor %} 18 + </ul> 19 + </div> 47 20 {% endfor %}