|
| 1 | +--- |
| 2 | +--- |
| 3 | + |
| 4 | +<div> |
| 5 | +{% if site.style == 'list' %} |
| 6 | + <ul> |
| 7 | +{% elsif site.style == 'nlist' %} |
| 8 | + <ol> |
| 9 | +{% endif %} |
| 10 | +{% assign directory = '' %} |
| 11 | +{% assign baseurl = site.github.baseurl %} |
| 12 | +{% for file in site.static_files %} |
| 13 | + {% if site.extensions == null or site.extensions contains file.extname %} |
| 14 | + {% assign dirs = file.path | split: '/' %} |
| 15 | + {% unless site.style == 'dir' and dirs.size < 3 %} |
| 16 | + {% unless dirs[1] == 'symbol' %} |
| 17 | + {% if dirs[1] != directory and site.style == 'dir' %} |
| 18 | + {% if directory != '' %} |
| 19 | + </dl> |
| 20 | + {% endif %} |
| 21 | + {% assign directory = dirs[1] %} |
| 22 | + <dl> |
| 23 | + {% if site.dir_links %} |
| 24 | + {% if site.dir_spacification == null %} |
| 25 | + <dt><a href="{{ baseurl }}/{{ directory }}">{{ directory }}</a></dt> |
| 26 | + {% else %} |
| 27 | + <dt><a href="{{ baseurl }}/{{ directory }}">{{ directory | replace: site.dir_spacification, ' ' }}</a></dt> |
| 28 | + {% endif %} |
| 29 | + {% else %} |
| 30 | + {% if site.dir_spacification == null %} |
| 31 | + <dt>{{ directory }}</dt> |
| 32 | + {% else %} |
| 33 | + <dt>{{ directory | replace: site.dir_spacification, ' ' }}</dt> |
| 34 | + {% endif %} |
| 35 | + {% endif %} |
| 36 | + {% endif %} |
| 37 | + {% if site.directories == null or site.directories contains dirs[1] %} |
| 38 | + {% if site.style contains 'list' %} |
| 39 | + <li> |
| 40 | + {% elsif site.style == 'dir' %} |
| 41 | + <dd> |
| 42 | + {% endif %} |
| 43 | + {% if site.html_link contains file.extname %} |
| 44 | + {% assign index = file.path.size | minus: file.extname.size %} |
| 45 | + {% assign fpath = file.path | slice: 0, index %} |
| 46 | + {% if site.style == 'dir' %} |
| 47 | + {% assign fname = file.basename %} |
| 48 | + {% else %} |
| 49 | + {% assign fname = fpath | slice: 1, fpath.size %} |
| 50 | + {% endif %} |
| 51 | + {% if site.truncate == null %} |
| 52 | + <a href="{{ baseurl }}{{ fpath }}">{{ fname }}</a> (<a href="{{ baseurl }}{{ file.path }}">{{ file.extname }}</a>) |
| 53 | + {% else %} |
| 54 | + <a href="{{ baseurl }}{{ fpath }}">{{ fname | truncate: site.truncate }}</a> (<a href="{{ baseurl }}{{ file.path }}">{{ file.extname }}</a>) |
| 55 | + {% endif %} |
| 56 | + {% else %} |
| 57 | + {% if site.style == 'dir' %} |
| 58 | + {% assign fname = file.name %} |
| 59 | + {% else %} |
| 60 | + {% assign fname = file.path | slice: 1, file.path.size %} |
| 61 | + {% endif %} |
| 62 | + {% if site.truncate == null %} |
| 63 | + <a href="{{ baseurl }}{{ file.path }}">{{ fname }}</a> |
| 64 | + {% else %} |
| 65 | + <a href="{{ baseurl }}{{ file.path }}">{{ fname | truncate: site.truncate }}</a> |
| 66 | + {% endif %} |
| 67 | + {% endif %} |
| 68 | + {% if site.style contains 'list' %} |
| 69 | + </li> |
| 70 | + {% elsif site.style == 'dir' %} |
| 71 | + </dd> |
| 72 | + {% elsif site.style == null %} |
| 73 | + <br> |
| 74 | + {% endif %} |
| 75 | + {% endif %} |
| 76 | + {% endunless %} |
| 77 | + {% endunless %} |
| 78 | + {% endif %} |
| 79 | +{% endfor %} |
| 80 | +{% if site.style == 'list' %} |
| 81 | + </ul> |
| 82 | +{% elsif site.style == 'nlist' %} |
| 83 | + </ol> |
| 84 | +{% elsif site.style == 'dir' %} |
| 85 | + </dl> |
| 86 | +{% endif %} |
| 87 | +</div> |
| 88 | + |
| 89 | +This site is done with [jeklist](https://github.com/Cryptorating/jeklist) by [fgallaire](https://f.gallai.re) |
0 commit comments