go-wiki/views/templates/home.html
2020-03-18 11:51:50 +01:00

44 lines
1.1 KiB
HTML

{{define "title"}} Welcome to Go-Wiki {{end}} {{define "content"}}
<div class="section">
<div class="jumbotron">
<h1 class="display-4">Welcome to Go-Wiki</h1>
<p class="lead">
Golang powered Wiki web application
</p>
<hr class="my-4" />
<p>
Look at our documentation to discover how to contribute !
</p>
<a class="btn btn-primary btn-lg" href="/view/Doc" role="button"
>Documentation</a
>
</div>
<div>
<h2>Go-Wiki Index</h2>
<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}}