forked from bsadd/bsadd.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gallery.html
executable file
·109 lines (81 loc) · 3.89 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
---
permalink: /gallery/
---
<!DOCTYPE html>
<html lang="en">
{% include head.html %}
<body>
{% include header.html %}
<div class="container">
<div class="row">
<div class="col-sm-3">
<div id="sidebar">
<ul id="nav-items" class="nav nav-stacked">
<li>
<h3 class="highlight"> <a href="">BSADD Blog</a> <i
class="glyphicon glyphicon-dashboard pull-right"></i></h3>
</li>
{% for session in site.data.gallery %}
{% assign url = session.imgFolder | split: "/" %}
{% assign url = url[2] %}
<li><a href="#{{ url }}">{{ session.title }}</a></li>
{% endfor %}
</ul>
</div>
</div>
<div class="col-sm-9 panel content-panel">
{% for session in site.data.gallery %}
{% assign url = session.imgFolder | split: "/" %}
{% assign url = url[2] %}
{% assign thumbFolder = session.imgFolder | append: '/thumb' %}
<!-- Check for thumbFolder existence -->
{% assign found = 0 %}
{% for file in site.static_files %}
{% if file.path contains thumbFolder %}
{% assign found = 1 %}
{% endif %}
{% endfor %}
<div id={{url}}>
<h2>{{ session.title }}</h2>
<hr />
<div class="photo-album">
{% for image in site.static_files %}
{% if image.path contains '/thumb' %}
{% continue %}
{% endif %}
{% if image.path contains session.imgFolder %}
{% if image.extname == '.jpg' or image.extname == '.jpeg' or image.extname == '.png' or image.extname == '.JPEG' %}
{% for item in session.imgFolder %}
{% assign picName = image.path | split: "/" | last %}
<a href="{{site.baseurl}}{{ session.imgFolder }}/{{ picName }}">
{% if found == 1 %}
<img src="{{site.baseurl}}{{ session.imgFolder }}/thumb/{{ picName }}" />
{% else %}
<img src="{{site.baseurl}}{{ session.imgFolder }}/{{ picName }}" style="width: 11vw" />
{% endif %}
</a>
{% endfor %}
{% endif %}
{% endif %}
{% endfor %}
</div>
</div>
{% endfor %}
{% for category in site.data.activitiesByCategory %}
{% if category.youtubePlaylist %}
<div id="{{ category.category }}">
<h2>{{ category.category }}</h2>
<hr />
<div>
<!-- <iframe width="560" height="315" src="https://www.youtube.com/embed/videoseries?list={{category.youtubePlaylist}}" title="{{category.category}}" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> -->
</div>
</div>
{% endif %}
{% endfor %}
</div>
</div>
</div>
{% include js_link.html %}
</body>
<!-- script references -->
</html>