forked from arnolds/pineapple
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
69 lines (55 loc) · 1.82 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
61
62
63
64
65
66
67
68
69
---
---
<!DOCTYPE html>
<html lang="en">
<head>
<title>{{ site.author }}</title>
<meta name="author" content="{{ site.author }}">
<meta name="description" content="{{ site.description }}">
<meta name="keywords" content="{{ site.keywords }}">
{% include head.html %}
</head>
<body class="black">
{% include header.html %}
<main class="home">
{% for category in site.categories reversed %}
{% capture category_name %}{{ category | first }}{% endcapture %}
<section class="projects">
<div class="container">
<h1 class="cat-title projects">{{ category_name }}</h1>
<ul class="projects-list {{ category_name | remove:" " }}">
{% for item in site.categories[category_name] %}
<li class="grid-item {% if item.landscape %}
landscape
{% endif %}"
>
<a href="{{ item.url | prepend: site.baseurl }}">
<div class="img-wrapper">
<img src="{{ item.project.logo | prepend: site.baseurl }}" alt="{{ item.project.title }}" />
</div>
<span class="h2">{{ item.project.type }}</span>
<h3>{{ item.project.title }}</h3>
</a>
</li>
{% endfor %}
</ul>
</div>
</section>
<script>
// external js: masonry.pkgd.js, imagesloaded.pkgd.js
var grid{{ category_name | remove:" " }} = document.querySelector('.{{ category_name | remove:" " }}');
var msnry{{ category_name | remove:" " }};
imagesLoaded( grid{{ category_name | remove:" " }}, function() {
// init Isotope after all images have loaded
msnry{{ category_name | remove:" " }} = new Masonry( grid{{ category_name | remove:" " }}, {
itemSelector: '.grid-item',
percentPosition: true
});
});
</script>
{% endfor %}
</main>
{% include footer.html %}
<script src="{{ "/assets/scripts/home.js" | prepend: site.baseurl }}"></script>
</body>
</html>