14 lines
304 B
HTML
14 lines
304 B
HTML
{{ template "header.html" . }}
|
|
<h1>Photo blog</h1>
|
|
{{ if .Username }}
|
|
<a class="mainlink" href="upload">Add photo</a>
|
|
{{ end }}
|
|
<ul class="photos">
|
|
{{ range .Photos }}
|
|
<li><a href="{{ . }}"><img src="{{ . }}"></a></li>
|
|
{{ else }}
|
|
<li>No photos</li>
|
|
{{ end }}
|
|
</ul>
|
|
{{ template "footer.html" }}
|