Skip to content

Latest commit

 

History

History
78 lines (75 loc) · 2.75 KB

template.md

File metadata and controls

78 lines (75 loc) · 2.75 KB


{% assign index = page.url.size | minus: 2 %} {% assign directory = page.url | slice: 1, index %} {% assign baseurl = site.github.baseurl %}

{% if site.style == 'list' %}
    {% elsif site.style == 'nlist' %} {% if site.nlist_type == null %}
      {% else %}
        {% endif %} {% elsif site.style == 'dir' %}
        {% if site.dir_spacification == null %}
        {{ directory }}
        {% else %}
        {{ directory | replace: site.dir_spacification, ' ' }}
        {% endif %} {% endif %} {% for file in site.static_files %} {% if site.extensions == null or site.extensions contains file.extname %} {% assign dirs = file.path | split: '/' %} {% if dirs[1] == directory %} {% if site.style contains 'list' %}
      1. {% elsif site.style == 'dir' %}
        {% endif %} {% if site.html_link contains file.extname %} {% assign index = file.path.size | minus: file.extname.size %} {% assign fpath = file.path | slice: 0, index %} {% if site.style == 'dir' %} {% assign fname = file.basename %} {% else %} {% assign fname = fpath | slice: 1, fpath.size %} {% endif %} {% if site.truncate == null %} {{ fname }} ({{ file.extname }}) {% else %} {{ fname | truncate: site.truncate }} ({{ file.extname }}) {% endif %} {% else %} {% if site.style == 'dir' %} {% assign fname = file.name %} {% else %} {% assign fname = file.path | slice: 1, file.path.size %} {% endif %} {% if site.truncate == null %} {{ fname }} {% else %} {{ fname | truncate: site.truncate }} {% endif %} {% endif %} {% if site.style contains 'list' %}
      2. {% elsif site.style == 'dir' %} {% elsif site.style == null %}
        {% endif %} {% endif %} {% endif %} {% endfor %} {% if site.style == 'list' %}
{% elsif site.style == 'nlist' %} {% elsif site.style == 'dir' %} {% endif %}

This site is done with jeklist