Skip to content

Commit f97eb36

Browse files
author
fabianmoronzirfas
committed
style(highlight): make some things stand out
removing unused code.
1 parent f7c4bc4 commit f97eb36

File tree

2 files changed

+7
-53
lines changed

2 files changed

+7
-53
lines changed

_includes/entry-card.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@ <h4 id="{{eid}}" class="entries">{% if include.ispage == false %}<a href="/{{id}
77
<!-- we test if the include.entry has a parameters -->
88
{% if include.entry.parameters.first %}
99
<div class="parameters">
10-
<p>Parameter(s):</p>
10+
<p><strong>Parameter(s):</strong></p>
1111
<ul>
1212
{% for param in include.entry.parameters %}
13-
<li>{{param.name}} {% raw %}{{% endraw %}{% for type in param.type %}{{type}}{% unless forloop.last %} | {% endunless %}{% endfor %}{% raw %}}{% endraw %}{% if param.optional %} <em>Optional:</em>{%else%}:{% endif %}<br>{{param.description}}</li>{% endfor %}
13+
<li><strong>{{param.name}}</strong> {% raw %}{{% endraw %}{% for type in param.type %}{{type}}{% unless forloop.last %} | {% endunless %}{% endfor %}{% raw %}}{% endraw %}{% if param.optional %} <em>Optional:</em>{%else%}:{% endif %}<br>{{param.description}}</li>{% endfor %}
1414
</ul>
1515
</div> <!-- end parameters div -->
1616
{% endif %}
1717
{% if include.entry.returns != null %}
1818
<div class="returns">
19-
<p>Returns:</p>
19+
<p><strong>Returns:</strong></p>
2020
<ul>
2121
<li>
2222
{% raw %}{{% endraw %}{% for type in include.entry.returns.type %}{{type}}{% unless forloop.last %} | {% endunless %}{% endfor %}{% raw %}}{% endraw %}:<br>

index.html

Lines changed: 4 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -4,69 +4,23 @@
44
---
55

66
<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 %}
98
<h3>{{ele.cat}} {%unless ele.subcat == 'null' %}<em>{{ele.subcat}}</em>{% endunless %}</h3>
109
<ul>
1110
{% for entry in ele.entries %}
1211
{% assign eid = entry.name |downcase %}
1312
<li id="{{eid}}-ndx"><a href="#{{eid}}">{{entry.codetitle}}</a></li>
1413
{% endfor %}
15-
</ul>
16-
{% endfor %}
17-
<br>
18-
<br>
19-
{% endfor %}
20-
21-
{% comment %}
22-
![](./assets/images/out.gif)
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 %}
5515
<!-- 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 %}
5817
<h3 id="{{id}}">{{item.cat}}</h3>
5918
<!-- 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 %}
6320
<!-- end entries in cat loop -->
64-
6521
{% endfor %}
6622
<!-- end item in cat loop -->
67-
6823
<div class="totop"><a href="#">back to index</a></div>
69-
7024
<script type="text/javascript">
7125
var searchindex = {{site.data.categories | jsonify}};
7226
</script>

0 commit comments

Comments
 (0)