-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
56 lines (54 loc) · 3.13 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
title: Open Source Portfolio
description: All open source projects on GitHub
---
<!DOCTYPE html>
<html lang="en">
<head>
<title>{{ page.title }}</title>
<link rel="stylesheet" media="all" href="./css/style.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Montserrat:400,700" type="text/css">
<meta name="viewport" content="width=device-width, inital-scale=1">
</head>
<body>
{% include icons.svg %}
<header class="header">
<h1>{{ page.title }}</h1>
<h2>{{ page.description }}</h2>
</header>
<ul class="portfolio">
{% for repo in site.github.public_repositories limit:28 %}
{% if repo.fork != true %}
<li class="repo repo--{{ repo.language | downcase }}">
<svg class="icon">
<use xmlns:xlink="http://www.w3.com/1999/xlink" xlink:href="#{{ repo.language | downcase }}"></use>
</svg>
<h3><a href="{{ repo.html_url }}">{{ repo.name }}</a></h3>
<p>{{ repo.description }}</p>
<a class="button" href="{{ repo.html_url }}/archive/{{ repo.default_branch }}.zip"><svg class="icon icon--sub"><use xmlns:xlink="http://www.w3.com/1999/xlink" xlink:href="#down"></use></svg> Download</a>
<a class="button" href="{{ repo.html_url }}/fork"><svg class="icon icon--sub"><use xmlns:xlink="http://www.w3.com/1999/xlink" xlink:href="#octocat"></use></svg> Fork it</a>
<aside class="details">
<span><svg class="icon icon--sub"><use xmlns:xlink="http://www.w3.com/1999/xlink" xlink:href="#star"></use></svg> {{ repo.stargazers_count }}</span>
<span><svg class="icon icon--sub"><use xmlns:xlink="http://www.w3.com/1999/xlink" xlink:href="#fork"></use></svg> {{ repo.forks_count }}</span>
</aside>
</li>
{% endif %}
{% if repo.fork == true %}
<li class="repo repo--{{ repo.language | downcase }}">
<svg class="icon">
<use xmlns:xlink="http://www.w3.com/1999/xlink" xlink:href="#{{ repo.language | downcase }}"></use>
</svg>
<h3><a href="{{ repo.html_url }}">{{ repo.name }}</a> <svg class="icon icon--sub"><use xmlns:xlink="http://www.w3.com/1999/xlink" xlink:href="#fork"></use></svg></h3>
<p>{{ repo.description }}</p>
<a class="button" href="{{ repo.html_url }}/archive/{{ repo.default_branch }}.zip"><svg class="icon icon--sub"><use xmlns:xlink="http://www.w3.com/1999/xlink" xlink:href="#down"></use></svg> Download</a>
<a class="button" href="{{ repo.html_url }}/fork"><svg class="icon icon--sub"><use xmlns:xlink="http://www.w3.com/1999/xlink" xlink:href="#octocat"></use></svg> Fork it</a>
<aside class="details">
<span><svg class="icon icon--sub"><use xmlns:xlink="http://www.w3.com/1999/xlink" xlink:href="#star"></use></svg> {{ repo.stargazers_count }}</span>
<span><svg class="icon icon--sub"><use xmlns:xlink="http://www.w3.com/1999/xlink" xlink:href="#fork"></use></svg> {{ repo.forks_count }}</span>
</aside>
</li>
{% endif %}
{% endfor %}
</ul>
</body>
</html>