4
4
---
5
5
6
6
< div class ="mx-auto max-w-8xl ">
7
- < div class ="hidden lg:block fixed inset-0 px-8 left-[max(0px,calc(50%-45rem))] right-auto w-[19.5rem] overflow-y-auto ">
8
- < nav >
7
+ < div
8
+ class ="hidden lg:block fixed inset-0 px-8 left-[max(0px,calc(50%-45rem))] right-auto w-[19.5rem] overflow-y-auto ">
9
+ < nav class ="mb-8 ">
9
10
< ul >
10
11
{% assign level = 0 %}
11
12
12
13
{% for entry in site.entries %}
13
- {% if entry.section %}
14
- {% if level == 1 %}
15
- </ ul >
16
- </ li >
17
- {% endif %}
18
- < li class ="mt-8 ">
19
- < a class ="mb-3 block font-semibold text-slate-700 hover:text-slate-900 " href ="#{{ entry.name }} "> {{ entry.title }}</ a >
20
- < ul class ="space-y-2 border-l border-slate-100 ">
21
- {% assign level = 1 %}
14
+ {% if entry.section %}
15
+ {% if level == 1 %}
16
+ </ ul >
17
+ </ li >
18
+ {% endif %}
19
+ < li class ="mt-8 ">
20
+ < a class ="mb-3 block font-semibold text-slate-700 hover:text-slate-900 " href ="#{{ entry.name }} "> {{
21
+ entry.title }}</ a >
22
+ < ul class ="space-y-2 border-l border-slate-100 ">
23
+ {% assign level = 1 %}
22
24
{% else %}
23
- < li >
24
- < a class ="block border-l pl-4 border-transparent hover:border-slate-400 text-slate-700 hover:text-slate-900 " href ="#{{ entry.name }} "> {{ entry.title }}</ a >
25
- </ li >
25
+ < li >
26
+ < a class ="block border-l pl-4 border-transparent hover:border-slate-400 text-slate-700 hover:text-slate-900 "
27
+ href ="#{{ entry.name }} "> {{ entry.title }}</ a >
28
+ </ li >
26
29
{% endif %}
27
- {% endfor %}
30
+ {% endfor %}
28
31
29
- {% if level == 1 %}
30
- </ ul >
31
- </ li >
32
- {% endif %}
32
+ {% if level == 1 %}
33
+ </ ul >
34
+ </ li >
35
+ {% endif %}
33
36
</ ul >
34
37
</ nav >
35
38
</ div >
@@ -42,23 +45,26 @@ <h1 class="text-gray-900 tracking-tight font-extrabold text-6xl">
42
45
It supports json data, loading via ajax and drag-and-drop.
43
46
</ p >
44
47
< div class ="mt-8 ">
45
- < a class ="rounded-md shadow text-lg text-white px-10 py-4 bg-indigo-600 hover:bg-indigo-700 " href ="https://github.com/mbraak/jqTree/tarball/master "> Download jqTree</ a >
48
+ < a class ="rounded-md shadow text-lg text-white px-10 py-4 bg-indigo-600 hover:bg-indigo-700 "
49
+ href ="https://github.com/mbraak/jqTree/tarball/master "> Download jqTree</ a >
46
50
</ div >
47
51
</ div >
48
52
< div class ="px-8 py-8 ">
49
53
{% for entry in site.entries %}
50
- {% if entry.hide_title %}
51
- < div id ="{{ entry.name }} "> </ div >
52
- {% elsif entry.section %}
53
- < h3 class ="text-4xl mb-8 font-extrabold text-slate-900 tracking-tight " id ="{{ entry.name }} "> {{ entry.title }}</ h3 >
54
- {% else %}
55
- < h4 class ="text-xl mb-4 font-bold text-slate-900 tracking-tight " id ="{{ entry.name }} "> {{ entry.title }}</ h4 >
56
- {% endif %}
57
- {% if entry.output.size > 1 %}
58
- < div class ="mb-16 text-slate-700 doc-entry prose ">
59
- {{ entry.output }}
60
- </ div >
61
- {% endif %}
54
+ {% if entry.hide_title %}
55
+ < div id ="{{ entry.name }} "> </ div >
56
+ {% elsif entry.section %}
57
+ < h3 class ="text-4xl mb-8 font-extrabold text-slate-900 tracking-tight " id ="{{ entry.name }} "> {{ entry.title
58
+ }}</ h3 >
59
+ {% else %}
60
+ < h4 class ="text-xl mb-4 font-bold text-slate-900 tracking-tight " id ="{{ entry.name }} "> {{ entry.title }}
61
+ </ h4 >
62
+ {% endif %}
63
+ {% if entry.output.size > 1 %}
64
+ < div class ="mb-16 text-slate-700 doc-entry prose ">
65
+ {{ entry.output }}
66
+ </ div >
67
+ {% endif %}
62
68
{% endfor %}
63
69
</ div >
64
70
</ div >
0 commit comments