-
Notifications
You must be signed in to change notification settings - Fork 0
/
twig-markup.html
22 lines (22 loc) · 1.32 KB
/
twig-markup.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{% retrieve repo from 'https://api.github.com/repos/' ~ source as json cache 60 %}
<div class="github-box repo">
<div class="github-box-title">
<h3>
<a class="owner" href="{{ repo.owner.url|replace('api.','')|replace('users/','') }}">{{ repo.owner.login }}</a>
/
<a class="repo" href="{{ repo.url|replace('api.','')|replace('repos/','') }}">{{ repo.name }}</a>
</h3>
<div class="github-stats">
<a class="watchers" href="{{ repo.url|replace('api.','')|replace('repos/','') }}/watchers">{{ repo.watchers }}</a>
<a class="forks" href="{{ repo.url|replace('api.','')|replace('repos/','') }}/forks">{{ repo.forks }}</a>
</div>
</div>
<div class="github-box-content">
<p class="description">{{ repo.description }}{% if repo.has_wiki %} — <a href="{{ repo.url|replace('api.','')|replace('repos/','') }}#readme">Read More</a>{% endif %}</p>
<p class="link"><a href="{{ repo.homepage }}">{{ repo.homepage }}</a></p>
</div>
<div class="github-box-download">
<p class="updated">Latest commit to the <strong>master</strong> branch on {{ repo.pushed_at|date('M j, Y') }}</p>
<a class="download" href="{{ repo.url|replace('api.','')|replace('repos/','') }}/zipball/master">Download as zip</a>
</div>
</div>