aboutsummaryrefslogtreecommitdiffstats
path: root/templates/index.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/index.tmpl')
-rw-r--r--templates/index.tmpl15
1 files changed, 15 insertions, 0 deletions
diff --git a/templates/index.tmpl b/templates/index.tmpl
new file mode 100644
index 0000000..7ee1801
--- /dev/null
+++ b/templates/index.tmpl
@@ -0,0 +1,15 @@
+{{template "header" . }}
+<h2>Recent Listens</h2>
+<ul class="scrobbles">
+{{range .Scrobbles}}
+ <li>
+ <img src="{{or .Image "https://lastfm-img2.akamaized.net/i/u/64s/4128a6eb29f94943c9d206c08e625904.png"}}"
+ height="40"/>
+ <div>
+ {{.Artist}} — {{.TrackName}}<br/>
+ <span class="album">in {{.Album}}</span>
+ </div>
+ </li>
+{{end}}
+</ul>
+{{template "footer" }}