forked from tennisfar/github-gallery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
50 lines (42 loc) · 1.47 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
---
title: Earth 2150 - Levels Gallery
image_folder: /images/
max_width: 200px
sort_by: img_name # modified_time or path (notice: path is case sensitive)
date_format: "%A, %B %-d, %Y"
---
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>{{ page.title }}</title>
<meta name="Earth 2150: Levels (Maps) Gallery" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<ul class="ins-imgs">
{% assign imgs = (site.static_files | sort: page.sort_by) %}
{% for img in imgs normal %}
{% if img.path contains page.image_folder %}
{% assign img_name = img.path | remove: page.image_folder | split: '.' | first %}
{% assign img_date = img.modified_time | date: page.date_format %}
<li class="ins-imgs-li" id="{{ img_name }}">
<div class="ins-imgs-img" onclick=this.classList.toggle("zoom");>
<a name="{{ img.path }}" href="#{{ img_name }}">
<img src=".{{ img.path }}"
alt="{{ img_name }}"
style="max-width: {{ page.max_width }}"/>
</a>
</div>
<div class="ins-imgs-label">{{ img_name }}</div>
</li>
{% endif %}
{% endfor %}
</ul>
<footer>
<a href="https://www.insideearth.info" target="_blank">InsideEARTH</a>
</footer>
</body>
</html>