feat: custom sections, TV series section, fix table wrapping

This commit is contained in:
Ben Goldsworthy 2025-01-12 15:52:54 +01:00
parent 995a539fa9
commit 39c64bf51a
No known key found for this signature in database
17 changed files with 402 additions and 204 deletions

View file

@ -1,16 +1,25 @@
{{ if ( .Scratch.Get "listMode" ) }}
<table>
<thead>
<tr>
<table>
<thead>
<tr>
{{ if ( and ( in site.Params.mainSections .Section ) ( in "current log wishlist" ( .Scratch.Get "page" ) ) ) }}
{{ if eq .Type "tv" }}
{{ partial ( printf "%s/%s/%s" .Section .Parent.Slug "table-header" ) . }}
{{ else }}
{{ partial ( printf "%s/%s" .Section "table-header" ) . }}
{{ end }}
{{ end }}
</tr>
</thead>
<tbody>
{{ if ( and ( in site.Params.mainSections .Section ) ( in "current log wishlist" ( .Scratch.Get "page" ) ) ) }}
{{ partial ( printf "%s/%s" .Section "table-header" ) . }}
{{ if eq .Type "tv" }}
{{ partial ( printf "%s/%s/%s" .Section .Parent.Slug "table-body" ) . }}
{{ else }}
{{ partial ( printf "%s/%s" .Section "table-body" ) . }}
{{ end }}
{{ end }}
</tr>
</thead>
<tbody>
{{ if ( and ( in site.Params.mainSections .Section ) ( in "current log wishlist" ( .Scratch.Get "page" ) ) ) }}
{{ partial ( printf "%s/%s" .Section "table-body" ) . }}
{{ end }}
</tbody>
<table>
</tbody>
<table></table>
</table>
{{ end }}