Skip to content

Commit

Permalink
add description
Browse files Browse the repository at this point in the history
  • Loading branch information
torbjornbp committed Nov 26, 2024
1 parent b67ccbe commit e2e643b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion layouts/shortcodes/tracks-table.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,17 @@
<td>{{ div .duration 60 }}:{{ printf "%02d" (mod .duration 60) }}</td>
<td>{{ .metaData.year }}</td>
<td>
{{ if .metaData.tracklist }}
{{ if or .metaData.tracklist .metaData.description }}
<details>
<summary>View details</summary>
{{ if .metaData.description }}<strong>{{ .metaData.description }}</strong>{{ end }}
{{ if .metaData.tracklist }}
<ol>
{{ range .metaData.tracklist }}
<li>{{ if .artist }}{{ .artist }} - {{ end }}{{ .title }}</li>
{{ end }}
</ol>
{{ end }}
</details>
{{ end }}
</td>
Expand Down Expand Up @@ -127,6 +129,10 @@
height: auto;
}

#musicTable td {
vertical-align: top;
}

#musicTable td:first-child {
width: 25%;
max-width: 250px;
Expand Down

0 comments on commit e2e643b

Please sign in to comment.