2020-02-26 05:02:57 +00:00
|
|
|
{{define "mixtape"}}
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>Mixtape</title>
|
|
|
|
<style type="text/css">
|
|
|
|
body {
|
|
|
|
font-size: 1.2em;
|
|
|
|
margin: 1em;
|
|
|
|
}
|
|
|
|
#playlist {
|
2020-02-29 15:50:22 +00:00
|
|
|
list-style: decimal-leading-zero;
|
2020-02-26 05:02:57 +00:00
|
|
|
margin: 1em 0;
|
|
|
|
}
|
|
|
|
#playlist li {
|
|
|
|
margin: 0.5em 0;
|
|
|
|
}
|
2020-02-29 16:25:46 +00:00
|
|
|
li p {
|
|
|
|
display: none;
|
|
|
|
font-style: italic;
|
|
|
|
}
|
2020-02-29 15:50:22 +00:00
|
|
|
li.active a {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
2020-02-29 16:25:46 +00:00
|
|
|
li.active p {
|
|
|
|
display: block;
|
|
|
|
}
|
2020-02-26 05:02:57 +00:00
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
{{template "full-player" .Tracks}}
|
|
|
|
</body>
|
|
|
|
</html>
|
2020-02-29 16:25:46 +00:00
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{define "track-info"}}
|
|
|
|
{{if eq .Num 1}}
|
|
|
|
<p>[Here I might introduce this mix.]</p>
|
|
|
|
<p>[Some notes about track 1.]</p>
|
|
|
|
{{else if eq .Num 2}}
|
|
|
|
<p>[Some notes about track 2.]</p>
|
|
|
|
{{else if eq .Num 5}}
|
|
|
|
<p>[Some notes about track 5.]</p>
|
|
|
|
{{end}}
|
2020-02-26 05:02:57 +00:00
|
|
|
{{end}}
|