{{ $path := .Get 0 }}
{{ $files := readDir $path }}
<ul>
  {{ range $files }}
    {{ if ne .Name "index.md" }}
      {{ $name := replace .Name ".md" "" }}
      <li><a href="{{ $name }}"> {{ $name }}</a></li>
    {{ end }}
  {{ end }}
</ul>

{{ $path := .Get 0 }}
{{ $files := readDir $path }}
<ul>
  {{ range $files }}
    {{ if ne .Name "index.md" }}
      {{ $name := replace .Name ".md" "" }}
      {{ $name := replace $name "-" " " }}
      <li><a href="{{ $name }}"> {{ $name }}</a></li>
    {{ end }}
  {{ end }}
</ul>

Add spaces to directory listing
Add spaces to directory listing
