28 lines
505 B
HTML
28 lines
505 B
HTML
{{ define "index" }}
|
|
|
|
{{ template "header" }}
|
|
|
|
{{ range $key, $value := . }}
|
|
|
|
<div class="row">
|
|
<div class="col-xs-2"></div>
|
|
<div class="col-xs-8">
|
|
<h1><a href ="/edit?id={{$value.Id}}">{{ $value.Title }}</a></h1>
|
|
</div>
|
|
<div class="col-xs-2"></div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-xs-2"></div>
|
|
<div class="col-xs-8">
|
|
{{ $value.Content }}
|
|
</div>
|
|
|
|
<div class="col-xs-2"></div>
|
|
</div>
|
|
{{end}}
|
|
|
|
|
|
{{ template "footer" }}
|
|
|
|
{{ end }} |