File tree 1 file changed +9
-5
lines changed
1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 25
25
{% assign folders = "" | split: ", " %}
26
26
{% for folder in site.static_files %}
27
27
{% if folder.path contains 'criterion/' %}
28
+ {% unless folder.path contains 'criterion/data/' %}
28
29
{% assign temp = folder.path | split: 'criterion/' %}
29
- {% assign pathName = temp[1] | split: '/' | first %}
30
- {% assign pathName = pathName | split: ", " %}
31
- {% assign folders = folders | concat: pathName %}
30
+ {% assign directoryName = temp[1] | split: '/' | first %}
31
+ {% assign pathName = 'criterion/' | append: directoryName %}
32
+ {% assign pathNameArray = pathName | split: ", " %}
33
+ {% assign folders = folders | concat: pathNameArray %}
34
+ {% endunless %}
32
35
{% endif %}
33
- {% endfor%}
36
+ {% endfor %}
37
+ {% comment %}folders = ['criterion/execution', 'criterion/microbenchmarks', ...]{% endcomment %}
34
38
{% assign folders = folders | uniq %}
35
39
36
40
{% if folders.size == 0 %}
41
45
< ul class ="tab " data-tab ="benchmarks ">
42
46
{% for folder in folders %}
43
47
< li {% if forloop.index ==1 %} class ="active " {% endif %} style ="font-weight: bold; ">
44
- < a href =""> {{ folder }}</ a >
48
+ < a href =""> {{ folder | split: '/' | last }}</ a >
45
49
</ li >
46
50
{% endfor%}
47
51
</ ul >
You can’t perform that action at this time.
0 commit comments