gunk-dev/the-valley

blob.tmpl

source64f5539ce840main's published tip history
721 bytes
1{{define "content"}}
2{{template "project-head" .Head}}
3<h1>{{.Name}}</h1>
4{{template "source-head" .}}
5<div class="card">
6 <div class="muted">{{.Size}}{{with .Plain}} · <a href="{{.}}">Plain text</a>{{end}}{{with .Rendered}} · <a href="{{.}}">Rendered</a>{{end}}</div>
7 {{- if .Notice}}
8 <p class="notice">{{.Notice}}</p>
9 {{- else}}
10 {{- with .Partial}}
11 <p class="notice">{{.}}</p>
12 {{- end}}
13 {{- with .Doc}}
14 {{template "document" .}}
15 {{- else}}
16 <div class="code"><table class="code"><tbody>{{range $i, $line := .Lines}}<tr id="L{{inc $i}}"><td class="ln"><a href="#L{{inc $i}}">{{inc $i}}</a></td><td class="src">{{$line}}</td></tr>{{end}}</tbody></table></div>
17 {{- end}}
18 {{- end}}
19</div>
20{{end}}