-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgallery-database.json
44 lines (44 loc) · 2.31 KB
/
gallery-database.json
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
---
layout: null
---
{
{%- if site.gallery != null -%}
"gallery": [
{%- assign idx = 0 -%}
{%- assign sorted = site.gallery | sort: 'lastCapture' -%}
{%- for image in sorted -%}
{
"title": "{{image.title}}",
"type": "{{image.type}}",
"tags": {{image.tags | jsonify }},
"description": "{{image.description}}",
"thumbnailUrl": {%- assign thumb = site.baseurl | append: image.image -%}{{thumb | jsonify}},
"imageUrl": "{{site.baseurl}}/assets/images/gallery/{{image.folder}}/{{image.folder}}.jpg",
"telescope": "{{image.telescope}}",
"focalLength": "{{image.length}}",
"aperture": "{{image.aperture}}",
"folder": "{{image.folder}}",
"exposure": "{{image.exposure}}",
"lights": "{{image.lights}}",
"sessions": "{{image.sessions}}",
"printUrl": {%- if image.printurl != null -%}{{site.galleryHome}}{{image .printurl | jsonify}}{%- else -%}""{%- endif -%},
"archive": {%- if image.archive != null -%}"{{image.archive}}"{%- else -%}"false"{%- endif -%},
"nostars": {%- if image.nostars != null -%}"{{image.nostars}}"{%- else -%}"false"{%- endif -%},
"signature": {%- if image.signature != null -%}"{{image.signature}}"{%- else -%}"false"{%- endif -%},
"noannotations": {%- if image.noannotations != null -%}"{{image.noannotations}}"{%- else -%}"false"{%- endif -%},
{%- if image.wwt != null %}"wwt": {{ image.wwt | jsonify }},{%- endif -%}
{%- if image.group != null %}"group": "{{ image.group }}",{%- endif -%}
"firstCapture": "{{ image.firstCapture }}",
"lastCapture": {%- if image.lastCapture != null -%}"{{image.lastCapture}}"{%- else -%}"{{image.firstCapture}}"{%- endif -%},
{%- if image.ra != null -%}"rightAscension": "{{ image.ra }}",{%- endif -%}
{%- if image.dec != null -%}"declination": "{{ image.dec }}",{%- endif -%}
{%- if image.size != null -%}"size": "{{ image.size }}",{%- endif -%}
{%- if image.radius != null -%}"radius": "{{ image.radius }}",{%- endif -%}
{%- if image.scale != null -%}"scale": "{{ image.scale }}",{%- endif -%}
"idx": "{{idx}}"
},
{%- assign idx = idx | plus: 1 -%}{%- endfor -%}
{}
]
{%- endif -%}
}