| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent b7003e7 commit d67dbc5
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -21,31 +21,17 @@ | |||
| 21 | 21 | <div class="benchmarks-intro"> | |
| 22 | 22 | {{ content }} | |
| 23 | 23 | </div> | |
| 24 | - | ||
| 24 | + | ||
| 25 | 25 | {% assign folders = "" | split: ", " %} | |
| 26 | - {% for image in site.static_files %} | ||
| 27 | - {% if image.path contains 'criterion/' %} | ||
| 28 | - {% assign imagepath = image.path | split: "/" %} | ||
| 29 | - {% for subpath in imagepath %} | ||
| 30 | - {% if forloop.index0 == 3 %} | ||
| 31 | - {% assign folders = folders | append: pathName %} | ||
| 32 | - {% endif %} | ||
| 33 | - {% endfor %} | ||
| 34 | - {% endif %} | ||
| 35 | - {% endfor %} | ||
| 36 | - {% assign folders = folders | uniq %} | ||
| 37 | - | ||
| 38 | - <!-- The code block below does exactly the same as the one above, which one is cleaner? --> | ||
| 39 | - <!-- {% assign folders = "" | split: ", " %} | ||
| 40 | 26 | {% for folder in site.static_files %} | |
| 41 | - {% if folder.path contains 'criterion/' %} | ||
| 42 | - {% assign temp = folder.path | split: 'criterion/' %} | ||
| 43 | - {% assign pathName = temp[1] | split: '/' | first %} | ||
| 44 | - {% assign pathName = pathName | split: ", " %} | ||
| 45 | - {% assign folders = folders | concat: pathName %} | ||
| 46 | - {% endif %} | ||
| 27 | + {% if folder.path contains 'criterion/' %} | ||
| 28 | + {% assign temp = folder.path | split: 'criterion/' %} | ||
| 29 | + {% assign pathName = temp[1] | split: '/' | first %} | ||
| 30 | + {% assign pathName = pathName | split: ", " %} | ||
| 31 | + {% assign folders = folders | concat: pathName %} | ||
| 32 | + {% endif %} | ||
| 47 | 33 | {% endfor%} | |
| 48 | - {% assign folders = folders | uniq %} --> | ||
| 34 | + {% assign folders = folders | uniq %} | ||
| 49 | 35 | ||
| 50 | 36 | {% if folders.size == 0 %} | |
| 51 | 37 | <p style="color: red;">There are no benchmarks to be displayed.</p> | |
| Back | FazBrowse Home | New Git URL |
0 commit comments