files/user.tmpl.html
{{ define "user" }} {{ template "head" . }} {{ template "nav" . }} {{ $length := len .Data.Items }} {{ if eq $length 0 }} {{ if .LoggedIn }} <p> you don't seem to have any feeds yet. <a href="/feeds">add your first feed here!</a> </p> {{ end }} {{ end }} <ul> {{ range .Data.Items }} <li> <a href="{{ .Link }}"> {{ .Title }} </a> <span class=puny>(<a href="//{{ .Link | printDomain }}">{{ .Link | printDomain }}</a>)</span> <br> <span class=puny title="{{ .Date }}">published {{ .Date | timeSince }} ago</span> </li> {{ end }} </ul> {{ template "tail" . }} {{ end }}