@require(page, subpages)

@if not page.render_subpages:
<div class="hide-if-js">
@end

<div id="subpages">
	<p><b>Subpages:</b></p>
	@for link, subpage in subpages.items():
		<p>
		<a href="@link">@subpage.get_title()!e</a>
		–
		@if subpage.short_description:
			@subpage.short_description
		@else:
			<i><em>No description available</em></i>
		@end
		</p>
	@end
</div>

@if not page.render_subpages:
</div>
@end
