ctucx.git: gallery

static-site-generator for image-galleries [used @ photos.ctu.cx]

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 
113 
114 
115 
116 
117 
118 
119 
120 
121 
122 
123 
124 
125 
126 
127 
128 
129 
130 
131 
132 
133 
134 
135 
136 
137 
138 
139 
140 
141 
<!DOCTYPE HTML>
<html lang="en">
	<head>
		<meta charset="utf-8">
		<title>{{name}} | {{siteName}}</title>

		<meta name="description" content="{{siteDescription}}">
		<meta name="keywords" content="{{siteTags}}">
		<meta name="author" content="{{siteAuthor}}">

        <meta name="generator" content="https://cgit.ctu.cx/gallery">
		<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1.0, maximum-scale=1.0">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta name="apple-mobile-web-app-capable" content="yes">

		<link type="text/css" rel="stylesheet" href="/style.css">
		{{#enableJS}}
		<link rel="preload" href="/albums.js" as="script">
		<script src="/justified-layout.min.js"></script>
		{{/enableJS}}
		<link rel="shortcut icon" href="/favicon.ico">
	</head>
	<body>
		<header>
			<div class="flex">
				{{#isSubalbum}}
				<a class="button" id="back" href="..">
					<svg class="iconic"><use xlink:href="/iconic.svg#chevron-left"></use></svg>
				</a>
				{{/isSubalbum}}

				<a class="title">{{name}}</a>

				{{#isSubalbum}}
				<input type="checkbox" id="toggle">
				<label for="toggle" style="display: block;" class="button info" title="Info">
					<svg class="iconic"><use xlink:href="/iconic.svg#info"></use></svg>
				</label>

				<div class="sidebar">
					<div class="sidebar-header">
						<h1>About</h1>
					</div>

					<div class="sidebar-wrapper">
						<div class="sidebar-divider">
							<h1>Basics</h1>
						</div>
			
						<table>
							<tbody>
								<tr>
									<td>Title</td>
									<td><span class="attr_title">{{name}}</span></td>
								</tr>
						 
								<tr>
									<td>Description</td>
									<td><span class="attr_description">{{description}}</span></td>
								</tr>	 
							</tbody>
						</table>
					 
						<div class="sidebar-divider">
							<h1>Album</h1>
						</div>
					
						<table>
							<tbody>
								<tr>
									<td>Created</td>
									<td><span class="attr_created">-</span></td>
								</tr>
							 
								<tr>
									<td>Subalbums</td>
									<td><span class="attr_subalbums">{{numAlbums}}</span></td>
								</tr>
							 
								<tr>
									<td>Pictures</td>
									<td><span class="attr_pictures">{{numPictures}}</span></td>
								</tr>
							</tbody>
						</table>
					</div>
				</div>
				{{/isSubalbum}}
			</div>
		</header>

		<main class="zoomIn">
			{{#hasSubalbums}}
			{{#showDivider}}
			<div class="divider">
				<h1>Albums</h1>
			</div>
			{{/showDivider}}

			<div id="albums" class="flex">
				{{#subalbums}}
				<a href="{{name}}/" class="album">
					<img src="{{thumbnail1}}" alt="Photo thumbnail">
					<img src="{{thumbnail2}}" alt="Photo thumbnail">
					<img src="{{thumbnail3}}" alt="Photo thumbnail">
					<span class="overlay">
						<h1>{{name}}</h1>
						<p>{{numPictures}} Pictures - {{numAlbums}} Albums</p>
					</span>
				</a>
				{{/subalbums}}
			</div>

			{{#showDivider}}
			<div class="divider">
				<h1>Photos</h1>
			</div>
			{{/showDivider}}
			{{/hasSubalbums}}

			<div id="photos" class="flex">
				{{#pictures}}
				<a href="{{name}}.html" class="photo" data-width="{{width}}" data-height="{{height}}" data-name="{{name}}">
					<img src="thumbnails/small/{{name}}.jpg" alt="Photo thumbnail">
					<span class="overlay">
						<h1>{{name}}</h1>
						{{#takestamp}}
						<p><span title="Camera Date"><svg class="iconic "><use xlink:href="/iconic.svg#camera-slr"></use></svg>{{takestamp}}</span></p>
						{{/takestamp}}
					</span>
				</a>
				{{/pictures}}
			</div>
		</main>
		{{#isSubalbum}}
		{{/isSubalbum}}
		{{#enableJS}}
		<script src="/albums.js"></script>
		{{/enableJS}}
	</body>
</html>