Skip to content

Latest commit

 

History

History
79 lines (76 loc) · 2.92 KB

template.md

File metadata and controls

79 lines (76 loc) · 2.92 KB


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

{% if site.style == 'list' %}
    {% elsif site.style == 'nlist' %}
      {% elsif site.style == 'dir' %}
      {% if site.spacification == null %}
      {{ directory }}
      {% else %}
      {{ directory | replace: site.spacification, ' ' }}
      {% endif %} {% endif %} {% assign printed_files = '' | split: '' %} {% 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 or dirs[2] == directory %} {% unless printed_files contains dirs.last %} {% assign last = dirs.last | split: ',' %} {% assign printed_files = printed_files | concat: last %} {% 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 %} {% endunless %} {% endif %} {% endif %} {% endfor %} {% if site.style == 'list' %}
{% elsif site.style == 'nlist' %} {% elsif site.style == 'dir' %} {% endif %}

This site is done with jeklist