|
4 | 4 | ---
|
5 | 5 |
|
6 | 6 | <h2 id="cat-ndx">Categories</h2>
|
7 |
| -{% for element in site.data.cats-and-subcats %} |
8 |
| -{% for ele in element %} |
| 7 | +{% for element in site.data.cats-and-subcats %}{% for ele in element %} |
9 | 8 | <h3>{{ele.cat}} {%unless ele.subcat == 'null' %}<em>{{ele.subcat}}</em>{% endunless %}</h3>
|
10 | 9 | <ul>
|
11 | 10 | {% for entry in ele.entries %}
|
12 | 11 | {% assign eid = entry.name |downcase %}
|
13 | 12 | <li id="{{eid}}-ndx"><a href="#{{eid}}">{{entry.codetitle}}</a></li>
|
14 | 13 | {% endfor %}
|
15 |
| - </ul> |
16 |
| -{% endfor %} |
17 |
| -<br> |
18 |
| -<br> |
19 |
| -{% endfor %} |
20 |
| - |
21 |
| -{% comment %} |
22 |
| - |
23 |
| -* TOC |
24 |
| -{:toc} |
25 |
| - |
26 |
| - |
27 |
| -<!-- start categories index loop --> |
28 |
| - |
29 |
| -{% for item in site.data.categories %} |
30 |
| -{% assign id = item.cat | downcase %} |
31 |
| -<a href="#{{id}}"><h3 id="{{id}}-ndx">{{item.cat}}</h3></a> |
32 |
| -<ul> |
33 |
| -<!-- start entries in cat loop --> |
34 |
| -{% for entry in item.entries %} |
35 |
| -{% assign eid = entry.name |downcase %} |
36 |
| -<!-- end entry method test loop --> |
37 |
| -<a href="#{{eid}}"><li id="{{eid}}-ndx">{{entry.codetitle}}</li></a> |
38 |
| -{% endfor %} |
39 |
| -<!-- end entries in cat loop --> |
40 |
| -</ul> |
41 |
| -{% endfor %} |
42 |
| -<!-- end categories index loop --> |
43 |
| - |
44 |
| - |
45 |
| -<h3 id="sub-cat-ndx">Sub-Categories</h3> |
46 |
| -<!-- start items in sub cat loop --> |
47 |
| -<ul> |
48 |
| -{% for item in site.data.sub-categories %} |
49 |
| -{% assign id = item.subcat | downcase %} |
50 |
| -<li id="{{id}}-ndx">{{item.subcat}}</li> |
51 |
| -{% endfor %} |
52 |
| -<!-- end items in sub cat loop --> |
53 |
| -</ul> |
54 |
| -{% endcomment %} |
| 14 | + </ul>{% endfor %}{% endfor %} |
55 | 15 | <!-- start item in cat loop -->
|
56 |
| -{% for item in site.data.categories %} |
57 |
| -{% assign id = item.cat | downcase %} |
| 16 | +{% for item in site.data.categories %}{% assign id = item.cat | downcase %} |
58 | 17 | <h3 id="{{id}}">{{item.cat}}</h3>
|
59 | 18 | <!-- start entries in cat loop -->
|
60 |
| -{% for entry in item.entries %} |
61 |
| -{% include entry-card.html entry=entry ispage=false %} |
62 |
| -{% endfor %} |
| 19 | +{% for entry in item.entries %}{% include entry-card.html entry=entry ispage=false %}{% endfor %} |
63 | 20 | <!-- end entries in cat loop -->
|
64 |
| - |
65 | 21 | {% endfor %}
|
66 | 22 | <!-- end item in cat loop -->
|
67 |
| - |
68 | 23 | <div class="totop"><a href="#">back to index</a></div>
|
69 |
| - |
70 | 24 | <script type="text/javascript">
|
71 | 25 | var searchindex = {{site.data.categories | jsonify}};
|
72 | 26 | </script>
|
0 commit comments