Skip to content

Commit 53b149c

Browse files
committed
Added generic repository include for flexible styling and GitHub metadata addition
1 parent c7cdb39 commit 53b149c

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

_includes/repository.html

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{% for repository in site.github.public_repositories %}
2+
{% if repository.name == include.name %}
3+
<pre id="github-pages-metadata" style="display:none;"></pre>
4+
<script>document.getElementById("github-pages-metadata").innerHTML = JSON.stringify({{ repository | jsonify }}, null, 4);</script>
5+
<div class="repo-box">
6+
<div class="repo-header">
7+
<div class="repo-header-right">
8+
{{ repository.stargazers_count }} <i class="fa fa-star"></i>&nbsp;&nbsp;
9+
10+
<a href="{{ repository.html_url }}" alt="GitHub URL">
11+
<i class="fa fa-github"></i>
12+
</a>
13+
</div>
14+
{{ repository.name }}
15+
</div>
16+
<div class="repo-description">
17+
{{ repository.owner_name }}
18+
{{ repository.description }}
19+
</div>
20+
</div>
21+
22+
23+
24+
25+
{% endif %}
26+
{% endfor %}

0 commit comments

Comments
 (0)