nirvash/templates/cms_list.html

20 lines
374 B
HTML
Raw Normal View History

{{ $pages := ((.Context).Value "adapter").ListPages }}
{{ template "header" .}}
2022-06-07 06:59:41 +00:00
<h2>Pages</h2>
<div class="new-page-button-wrapper">
2022-06-07 06:59:41 +00:00
<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" .}}