aboutsummaryrefslogtreecommitdiff
path: root/template-vars.md
blob: f222813415ab10578ae2e4dd1f38b65f16949972 (plain)
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
# Variables

A very rough and dirty representation of the variables in each template.

## Common for all templates

* `title`
* `index`

## index.html

* `albums` (vector)
* `years` (vector)
	- `name`
	- `albums` (vector)

## album.html

* `album`
	- `title`
	- `desc`
	- `link`
	- `date`
	- `year`
	- `previews` (vector of thumbs)
	- `thumbs` (vector)
		- `link`
		- `source`

## image.html

* `album`
* `image`
	- `exif` **TODO!**
	- `date`
	- `source`
	- `prev`
	- `next`