
<div class="box">
  <h4 class="title is-5">{{ .Entry.Name }}</h4>
  <p><strong>Type :</strong> {{ ext .Entry.Name }}</p>
  <p><strong>Taille :</strong> {{ printf "%.1f KB" (toKB .Entry.Size) }}</p>
  <p><strong>Modifié :</strong> {{ .Entry.ModTime.Format "02 Jan 2006 15:04" }}</p>
  {{ if and (not .Entry.IsDir) (or (hasSuffix .Entry.Name ".jpg") (hasSuffix .Entry.Name ".png")) }}
    <figure class="image">
      <img src="/static/uploads/{{ .Entry.Path }}">
    </figure>
  {{ end }}
</div>

