view.html 326 B

1234567891011121314151617
  1. {{ $path := .Title }}
  2. {{ template "header" }}
  3. <main>
  4. {{range .Body}}
  5. {{if .IsDir}}
  6. <div><a href="{{.Name}}/">{{.Name}}</a></div>
  7. {{else}}
  8. <div>edit: <a href="/admin/edit/{{$path}}{{.Name}}">{{.Name}}</a></div>
  9. {{end}}
  10. {{end}}
  11. </main>
  12. {{ template "footer" }}