Skip to content

Version 1.6.2

Compare
Choose a tag to compare
@marjune163 marjune163 released this 20 Mar 04:05

This release aims at bug fix and performance improvement.

Breaking changes

Getting HTML formatted sub items in template changed.

Before:

{{range .SubItems}}{{with .Html}}
<li class="{{if .IsDir}}dir{{else}}file{{end}}">
  <a href="{{$subItemPrefix}}{{.Link}}{{if .IsDir}}/{{end}}">
    <span class="name">{{.Name}}{{if .IsDir}}/{{end}}</span>
    <span class="size">{{if not .IsDir}}{{.Size}}{{end}}</span>
    <span class="time">{{.ModTime}}</span>
  </a>
</li>
{{end}}{{end}}

After:

{{range .SubItemsHtml}}
<li class="{{.Type}}">
  <a href="{{.Url}}">
    <span class="name">{{.DisplayName}}</span>
    <span class="size">{{.DisplaySize}}</span>
    <span class="time">{{.DisplayTime}}</span>
  </a>
</li>
{{end}}