-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
112 lines (109 loc) · 6.6 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
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
110
111
112
---
layout: homepage
permalink: /
---
<div class="container mx-auto">
<h1 class="text-2xl pt-4 pb-4 font-bold"></h1>
<section class="text-neutral-700">
<div class="container w-full">
<div class="flex flex-wrap w-full">
{% for image in site.data.images %}
{% assign mod = forloop.index | modulo: 8 %}
{% if mod == 1 %}
<div class="flex w-full md:w-1/2 flex-wrap">
<div class="w-full p-1">
<div class="overflow-hidden h-full w-full">
<a href="photography/{{ image.name }}.png" data-fancybox="gallery1" data-caption="{{ image.location }}">
<img alt="{{ image.location }}"
class="block lazyload h-full w-full object-cover object-center opacity-0 animate-fade-in transition duration-500 transform scale-100 hover:scale-110"
loading="lazy"
src="photography/{{ image.name }}.png" />
</a>
</div>
</div>
{% elsif mod == 2 %}
<div class="w-full md:w-1/2 p-1">
<div class="overflow-hidden h-full w-full">
<a href="photography/{{ image.name }}.png" data-fancybox="gallery2" data-caption="{{ image.location }}">
<img alt="{{ image.location }}"
class="block lazyload h-full w-full object-cover object-center opacity-0 animate-fade-in transition duration-500 transform scale-100 hover:scale-110"
loading="lazy"
src="photography/{{ image.name }}.png" />
</a>
</div>
</div>
{% elsif mod == 3 %}
<div class="w-full md:w-1/2 p-1">
<div class="overflow-hidden h-full w-full">
<a href="photography/{{ image.name }}.png" data-fancybox="gallery3" data-caption="{{ image.location }}">
<img alt="{{ image.location }}"
class="block lazyload h-full w-full object-cover object-center opacity-0 animate-fade-in transition duration-500 transform scale-100 hover:scale-110"
loading="lazy"
src="photography/{{ image.name }}.png" />
</a>
</div>
</div>
{% elsif mod == 4 %}
<div class="w-full md:w-1/2 p-1">
<div class="overflow-hidden h-full w-full">
<a href="photography/{{ image.name }}.png" data-fancybox="gallery4" data-caption="{{ image.location }}">
<img alt="{{ image.location }}"
class="block lazyload h-full w-full object-cover object-center opacity-0 animate-fade-in transition duration-500 transform scale-100 hover:scale-110"
loading="lazy"
src="photography/{{ image.name }}.png" />
</a>
</div>
</div>
{% elsif mod == 5 %}
<div class="w-full md:w-1/2 p-1">
<div class="overflow-hidden h-full w-full">
<a href="photography/{{ image.name }}.png" data-fancybox="gallery5" data-caption="{{ image.location }}">
<img alt="{{ image.location }}"
class="block lazyload h-full w-full object-cover object-center opacity-0 animate-fade-in transition duration-500 transform scale-100 hover:scale-110"
loading="lazy"
src="photography/{{ image.name }}.png" />
</a>
</div>
</div>
</div>
{% elsif mod == 6 %}
<div class="flex w-full md:w-1/2 flex-wrap">
<div class="w-full md:w-1/2 p-1">
<div class="overflow-hidden h-full w-full">
<a href="photography/{{ image.name }}.png" data-fancybox="gallery6" data-caption="{{ image.location }}">
<img alt="{{ image.location }}"
class="block lazyload h-full w-full object-cover object-center opacity-0 animate-fade-in transition duration-500 transform scale-100 hover:scale-110"
loading="lazy"
src="photography/{{ image.name }}.png" />
</a>
</div>
</div>
{% elsif mod == 7 %}
<div class="w-full md:w-1/2 p-1">
<div class="overflow-hidden h-full w-full">
<a href="photography/{{ image.name }}.png" data-fancybox="gallery7" data-caption="{{ image.location }}">
<img alt="{{ image.location }}"
class="block lazyload h-full w-full object-cover object-center opacity-0 animate-fade-in transition duration-500 transform scale-100 hover:scale-110"
loading="lazy"
src="photography/{{ image.name }}.png" />
</a>
</div>
</div>
{% else %}
<div class="w-full p-1">
<div class="overflow-hidden h-full w-full">
<a href="photography/{{ image.name }}.png" data-fancybox="gallery7" data-caption="{{ image.location }}">
<img alt="{{ image.location }}"
class="block lazyload h-full w-full object-cover object-center opacity-0 animate-fade-in transition duration-500 transform scale-100 hover:scale-110"
loading="lazy"
src="photography/{{ image.name }}.png" />
</a>
</div>
</div>
</div>
{% endif %}
{% endfor %}
</div>
</div>
</section>
</div>