nirvash/templates/cms_list.html

19 lines
374 B
HTML

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