$if(notoc)$$else$ $endif$
$for(list)$
$if(it.description)$ $endif$
$if(it.layout.is_grid)$ $it.items:partials/grid_card()$ $elseif(it.layout.is_small-gallery)$ $it.items:partials/small_gallery_card()$ $elseif(it.layout.is_gallery)$ $it.items:partials/gallery_card()$ $else$ $it.items:partials/list_card()$ $endif$
$if(it.omitted)$ $endif$
$endfor$