nirvash/templates/cms_list.html

15 lines
350 B
HTML
Raw Normal View History

{{ $pages := ((.Context).Value "adapter").ListPages }}
{{ template "header" .}}
<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" .}}