mirror of
https://github.com/rjNemo/go-wiki
synced 2026-06-06 02:36:40 +00:00
31 lines
728 B
HTML
31 lines
728 B
HTML
{{define "title"}} Welcome to Go-Wiki {{end}} {{define "content"}}
|
|
|
|
|
|
|
|
<div>
|
|
<h1 class="display-4">Go-Wiki Index</h1>
|
|
<p>Some description</p>
|
|
|
|
<table class="table table-hover">
|
|
<thead class="thead-light">
|
|
<tr>
|
|
<th scope="col">Title</th>
|
|
<th scope="col"></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{ range $index, $entry := .Wikis }}
|
|
<tr>
|
|
<td><a href="/view/{{ $entry.Title }}">{{ $entry.Title }}</a></td>
|
|
<th scope="row">
|
|
<a class="badge-pill badge-primary" href="/edit/{{ $entry.Title }}"
|
|
>Edit</a
|
|
>
|
|
</th>
|
|
</tr>
|
|
{{ end }}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
{{end}}
|