diff --git a/_plugins/inject_info.rb b/_plugins/inject_info.rb
new file mode 100644
index 0000000..47e7764
--- /dev/null
+++ b/_plugins/inject_info.rb
@@ -0,0 +1,8 @@
+Jekyll::Hooks.register :site, :post_read do |site|
+ data = site.data
+ data['projects'].each do |key, section|
+ section['repos'].each do |repo|
+ repo['info'] = data['github_info'][repo['url']]
+ end
+ end
+end
diff --git a/assets/style.scss b/assets/style.scss
index bed49ca..be2d51f 100644
--- a/assets/style.scss
+++ b/assets/style.scss
@@ -49,6 +49,7 @@ header {
li {
margin: 16px 0px;
text-align: center;
+ line-height: 125%;
}
}
}
diff --git a/index.html b/index.html
index 41d2296..c63d73f 100644
--- a/index.html
+++ b/index.html
@@ -8,10 +8,38 @@
{{ data.name }}
- {% for repo in data.repos %}
- -
- {{ repo.url }}
-
+ {% assign repos = data.repos | sort: "info.stars", "first" | reverse %}
+ {% for repo in repos %}
+ {% assign info = repo.info %}
+ {% if info %}
+
+ {% assign dates = '' | split: '' %}
+ {% if info.last_release %}
+ {% assign dates = dates | push: info.last_release.published_at %}
+ {% endif %}
+ {% if info.last_tag %}
+ {% assign dates = dates | push: info.last_tag.committer_date %}
+ {% endif %}
+ {% assign last_release = dates | sort | last %}
+
+ {% if info.user_name %}
+ {% if info.user_name != info.user_login %}
+ {% assign user = '@' | append: info.user_login | append: ' (' | append: info.user_name | append: ')' %}
+ {% else %}
+ {% assign user = '@' | append: info.user_login %}
+ {% endif %}
+ {% else %}
+ {% assign user = '@' | append: info.user_login %}
+ {% endif %}
+
+ -
+ {{ info.name }}
+ by {{ user }} *{{ info.stars }}
+ {{ info.description }}
+ Last release: {{ last_release | date_to_string }} |
+ commit: {{ info.last_commit.author_date | date_to_string }} | {{ info.license | replace: "-", " " }}
+
+ {% endif %}
{% endfor %}