aboutsummaryrefslogtreecommitdiff
path: root/template-vars.md
blob: 2108b87ff4098ab88cb41296189b4a4acdd76baf (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
# 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`
	- `previews` (vector of thumbs)
	- `thumbs` (vector)
		- `link`
		- `source`

## image.html

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