Skip to content

Commit aa0153a

Browse files
committed
Add basic loop for fetching public repositories
1 parent 5939426 commit aa0153a

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

_config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ description: >- # this means to ignore newlines until "baseurl:"
2727
baseurl: "" # the subpath of your site, e.g. /blog
2828
url: "" # the base hostname & protocol for your site, e.g. http://example.com
2929

30+
# GitHub Metadata
31+
# Used for "improve this page" link
32+
branch: master
33+
3034
twitter_username: scribd
3135
facebook_username: scribd
3236
linkedin_username: scribd

projects.html

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,16 @@
44
permalink: /projects/
55
---
66

7-
This is an empty projects page.
7+
<ul>
8+
{% assign public_repositories = site.github.public_repositories | where:'archived', false | where:'fork', false | sort: 'stargazers_count' | reverse %}
9+
{% for repository in public_repositories %}
10+
<li>
11+
<h2>
12+
<a href='{{ repository.html_url }}'>{{ repository.name }}</a>
13+
</h2>
14+
<p>{{ repository.description }}</p>
15+
<p>{{ repository.language }}</p>
16+
<p>{{ repository.license.spdx_id }}</p>
17+
</li>
18+
{% endfor %}
19+
</ul>

0 commit comments

Comments
 (0)