@require(page, subpages) @if not page.render_subpages:
@end

Subpages:

@for link, subpage in subpages.items(): \ @if subpage.thumbnail:

@subpage.get_title()!e @if subpage.short_description: – @subpage.short_description @end

@end @end
@for link, subpage in subpages.items(): \ @if not subpage.thumbnail:

@subpage.get_title()!e @if subpage.short_description: – @subpage.short_description @end

@endif @end
@if not page.render_subpages:
@end