[% USE HTML -%]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>[% site.title OR name OR c.config.site.name %]: [% page.title %]</title>
		<!--<link rel="stylesheet" href="/static/style/basic.css" type="text/css" media="screen" />
		<link rel="stylesheet" href="/static/style/mango.css" type="text/css" media="screen" />-->
	</head>
	<body id="[% HTML.escape(site.id OR c.config.site.id) %]">
		<div id="container">
			<div id="header">
				<h1>[% site.title OR name %]</h1>
				[% IF page.subtitle %]<h2>[% page.subtitle %]</h2>[% END %]
				[% IF c.user_exists %]
					Welcome [% c.user.profile.first_name OR c.user.username %]
				[% END %]
				[% INCLUDE 'includes/menu' %]
			</div>
			<div id="contents">
				<div id="content">
					<h2>[% page.title %]</h2>
					[% content %]
					[% INCLUDE 'includes/pager' %]
				</div>
			</div>
			<div id="footer">
				<p>
					Powered by <a href="http://mangoframework.com/">Mango</a>.
				</p>
			</div>
		</div>
	</body>
</html>
