-
Notifications
You must be signed in to change notification settings - Fork 15
/
figurelist.html
57 lines (46 loc) · 1.68 KB
/
figurelist.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
49
50
51
52
53
54
55
56
57
---
layout: page
title: List of Figures
---
<a href="./">◀ Back to Homepage</a>
<h2>List of Figures</h2>
{% for group in site.data.figures %}
<div class="group">
<a href="#{{group.name}}">{{ group.group }}:</a>
{{ group.children | map: "title" | join: ", " }}
</div>
{% endfor %}
{% for group in site.data.figures %}
<a name="{{group.name}}"></a>
<h2>{{ group.group }}</h2>
{% for figure in group.children %}
<div>
{% if figure.number %}
{% if figure.variable %}
<h3> {{ figure.number }}: {{ figure.title}} ({{ figure.variable }}) </h3>
{% else %}
<h3> {{ figure.number }}: {{ figure.title}} </h3>
{% endif %}
{% else %}
<h3>{{ figure.spec }}</h3>
{% endif %}
<a name="{{figure.spec}}"></a>
{% assign name = figure.spec | remove:".vl.json" | remove:".vg.json" %} {% assign imgurl = name | append: ".png" | prepend: "img/" %}
<a href="/examples/{{name}}">
<img class="figure" src="{{imgurl}}" />
</a>
<p class="caption">{{ figure.caption }}</p>
<a href="/examples/{{name}}">
{% if figure.spec contains ".vl."%}
(Vega-Lite demo)
{% else %}
(Vega demo)
{% endif %}
</a>
{% if figure.note %}
<p class="note">Note: {{figure.note}}</p>
{% endif %}
<div class="clear"></span>
</div>
{% endfor %}
{% endfor %}