diff options
Diffstat (limited to 'templates/index.tmpl')
| -rw-r--r-- | templates/index.tmpl | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/templates/index.tmpl b/templates/index.tmpl index 7ee1801..8468b31 100644 --- a/templates/index.tmpl +++ b/templates/index.tmpl @@ -1,15 +1,18 @@ {{template "header" . }} <h2>Recent Listens</h2> <ul class="scrobbles"> -{{range .Scrobbles}} +{{- range .Scrobbles}} <li> - <img src="{{or .Image "https://lastfm-img2.akamaized.net/i/u/64s/4128a6eb29f94943c9d206c08e625904.png"}}" - height="40"/> + <img src="{{or .Image "https://lastfm-img2.akamaized.net/i/u/64s/4128a6eb29f94943c9d206c08e625904.png"}}"/> <div> - {{.Artist}} — {{.TrackName}}<br/> - <span class="album">in {{.Album}}</span> + {{.Artist}} — {{.TrackName}}<br/> + <span class="album">in {{.Album}}</span> + </div> + <div class="like"> + <span class="album">{{ago .Time}}</span><br/> + <i class="material-icons">favorite_border</i> </div> </li> -{{end}} +{{- end}} </ul> {{template "footer" }} |
