nirvash/templates/cms_list.html

18 lines
No EOL
366 B
HTML

{{ $pages := ((.Context).Value "adapter").ListPages }}
{{ template "header" .}}
<h2>Pages</h2>
<div class="page-list">
<a class="new-page-button" href="/new">New Page</a>
<ul>
{{ range $slug, $title := $pages }}
<li><a href="/edit/{{$slug}}">{{$title}}</a></li>
{{ end }}
</ul>
</div>
<div class="static-files-list">
</div>
{{ template "footer" .}}