feat: custom sections, TV series section, fix table wrapping
This commit is contained in:
parent
995a539fa9
commit
39c64bf51a
17 changed files with 402 additions and 204 deletions
|
@ -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 }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue