forked from ciotlab/ciotlab.github.io
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgallery.html
80 lines (80 loc) · 3.95 KB
/
gallery.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
70
71
72
73
74
75
76
77
78
79
80
---
layout: page
title: "Gallery"
sub_title: "Award & Event"
black_menu: true
header_style: 'one'
custom_font: font4
header_image: "/assets/images/art/bg/skku/skku2-2.jpg"
---
<div class="wrapper light-wrapper">
<div class="container inner">
<div class="grid gird-view boxed">
<div class="isotope-filter text-center">
<ul>
<li><a class="button active" data-filter="*">All</a></li>
{% for category in site.data.gallery.portfolios_area.categories %}
<li><a class="button" data-filter=".{{category.filter}}">{{category.title}}</a></li>
{% endfor %}
</ul>
</div>
<div class="clearfix"></div>
<div class="tiles">
<div class="row isotope light-gallery-wrapper">
{% for portfolio in site.data.gallery.portfolios_area.portfolios %}
<div id="portfolio.title" class="item grid-sizer col-md-6 col-lg-12 {% for filter in portfolio.filters %} {{filter}} {% endfor %}">
<div class="box bg-white shadow">
<div class="post-content">
<div class="category text-center">
<div class="flex-row">
{% for filter in portfolio.filters %}
<div class="badge badge-pill {% if filter == 'event' %}bg-aqua{% elsif filter=='award'%}bg-hibiscus{% else %}bg-meander{% endif %} mr-2">
{{filter}}
</div>
{% endfor %}
</div>
</div>
<h1 class="post-title text-center">
{{portfolio.title}}
</h1>
{% if portfolio.date %}
<div class="meta text-center">
<i class="jam jam-clock"></i> {{portfolio.date}}
</div>
{% endif %}
{% if portfolio.content %}
<p class="text-center">{{portfolio.content}}</p>
{% endif %}
</div>
<div class="space20"></div>
<div class="row">
{% for image in portfolio.images %}
{% if forloop.length == 1 %}
<div class="col-md-6 col-lg-12" >
<figure class="rounded text-center">
<img src="{{image.img}}" style="width: fit-content;" alt="{{portfolio.title}}">
</figure>
</div>
{% elsif forloop.length < 3 %}
<div class="col-md-6">
<figure class="rounded">
<img src="{{image.img}}" alt="{{portfolio.title}}">
</figure>
</div>
{% else %}
<div class="col-md-4">
<figure class="rounded shadow">
<img src="{{image.img}}" alt="{{portfolio.title}}">
</figure>
</div>
{% endif %}
{% endfor %}
</div>
</div>
</div>
{% endfor %}
</div>
</div>
</div>
</div>
</div>