This repository has been archived by the owner on Nov 29, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
60 lines (53 loc) · 1.8 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
57
58
59
60
---
layout: default
---
<div class="home-overlay"></div>
<div class="home">
<header class="text-center">
<div class="scilife-logo">
<img class="scilife-logo-img" src="{{ site.baseurl }}/img/scilifelab-logo-bp.svg" title="Science for Life Laboratory" alt="SciLifeLab logo" />
</div>
</header>
<section>
<div class="showcase">
{% for post in site.posts %}
<div class="case-wrapper">
<a href="https://github.com/{{ post.repo }}" alt="See the {{ post.project }} code" class="case-action-wrapper">
<div id="gh-stars-{{ forloop.index0 }}" class="case-action">
<div class="icon-star"></div>
</div>
</a>
<a class="case" href="{{ post.url | prepend: site.baseurl }}">
{% if post.icon_bg %}
<div class="case-logo" style="background:{{ post.icon_bg }}">
{% else %}
<div class="case-logo bg-yellow">
{% endif %}
{% if post.icon_img %}
<img class="case-logo-img"
src="/img/{{ post.icon_img }}"
width="48" height="48"
alt="Project image logo">
{% else %}
<div class="case-logo-icon {{ post.icon }}"></div>
{% endif %}
</div>
<div class="case-intro">
<span class="case-intro-title">{{ post.project }}</span>
<span class="case-intro-text">{{ post.intro }}</span>
</div>
</a>
</div>
{% endfor %}
</div>
</section>
</div>
<script>
$(function() {
{% for post in site.posts %}
$.getJSON('https://api.github.com/repos/{{ post.repo }}', function(data) {
$('#gh-stars-{{ forloop.index0 }}').append(data.stargazers_count);
});
{% endfor %}
});
</script>